1 #ifndef QVALUECOMBOBOX_H
2 #define QVALUECOMBOBOX_H
6 // QComboBox that can be used with QDataWidgetMapper to select
7 // ordinal values from a model.
8 class QValueComboBox : public QComboBox
11 Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged USER true);
13 explicit QValueComboBox(QWidget *parent = 0);
16 void setValue(int value);
18 // Model role to use as value
19 void setRole(int role);
30 void handleSelectionChanged(int idx);
33 #endif // QVALUECOMBOBOX_H