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;