31 #ifndef CHECKABLECOMBOBOX_H
32 #define CHECKABLECOMBOBOX_H
37 #include "commonWidgets.h"
49 Q_PROPERTY(QVector<int> checkedIndices READ getCheckedIndices WRITE setCheckedIndices);
56 QAbstractItemModel* checkableModel()
const;
57 void setCheckableModel(QAbstractItemModel *model);
60 QModelIndexList checkedIndexes()
const;
62 bool allChecked()
const;
64 bool noneChecked()
const;
67 void setCheckState(
const QModelIndex& index, Qt::CheckState check);
69 Qt::CheckState checkState(
const QModelIndex& index)
const;
76 bool eventFilter(QObject *o, QEvent *e);
78 void setCheckedIndices(
const QVector<int> &indices);
79 QVector<int> getCheckedIndices()
const;
83 void checkedIndexesChanged();
86 void setIndexState(
int index,
bool state);
89 void onDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
93 virtual void paintEvent(QPaintEvent*);
96 QScopedPointer<CheckableComboBoxPrivate> d_ptr;
Definition: checkableComboBox.h:45
Definition: checkableComboBox.cpp:117
Definition: checkableModelHelper.h:45