Olive
comboboxex.h
1 #ifndef COMBOBOXEX_H
2 #define COMBOBOXEX_H
3 
4 #include <QComboBox>
5 #include <QDebug>
6 
7 class ComboBoxEx : public QComboBox {
8  Q_OBJECT
9 public:
10  ComboBoxEx(QWidget* parent = 0);
11  void setCurrentIndexEx(int i);
12  void setCurrentTextEx(const QString &text);
13  int getPreviousIndex();
14 private slots:
15  void index_changed(int);
16 private:
17  int index;
18  int previousIndex;
19  void wheelEvent(QWheelEvent* e);
20 };
21 
22 #endif // COMBOBOXEX_H
Definition: comboboxex.h:7