1 #ifndef QVALUECOMBOBOX_H
2 #define QVALUECOMBOBOX_H
6 /* QComboBox that can be used with QDataWidgetMapper to select ordinal values from a model. */
7 class QValueComboBox : public QComboBox
10 Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true)
12 explicit QValueComboBox(QWidget *parent = 0);
15 void setValue(int value);
17 /** Specify model role to use as ordinal value */
18 void setRole(int role);
29 void handleSelectionChanged(int idx);
32 #endif // QVALUECOMBOBOX_H