21 #ifndef __ctkCheckableComboBox_h 22 #define __ctkCheckableComboBox_h 28 #include "ctkWidgetsExport.h" 31 class ctkCheckableComboBoxPrivate;
45 QAbstractItemModel* checkableModel()
const;
46 void setCheckableModel(QAbstractItemModel *model);
49 QModelIndexList checkedIndexes()
const;
51 bool allChecked()
const;
53 bool noneChecked()
const;
56 void setCheckState(
const QModelIndex& index, Qt::CheckState check);
58 Qt::CheckState checkState(
const QModelIndex& index)
const;
65 bool eventFilter(QObject *o, QEvent *e);
68 void checkedIndexesChanged();
71 void onDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
75 virtual void paintEvent(QPaintEvent*);
78 QScopedPointer<ctkCheckableComboBoxPrivate>
d_ptr;
QScopedPointer< ctkCheckableComboBoxPrivate > d_ptr