21 lines
382 B
C++
21 lines
382 B
C++
#ifndef COMBOBOXEX_H
|
|
#define COMBOBOXEX_H
|
|
|
|
#include <QComboBox>
|
|
#include <QDebug>
|
|
|
|
class ComboBoxEx : public QComboBox {
|
|
Q_OBJECT
|
|
public:
|
|
ComboBoxEx(QWidget* parent = 0);
|
|
void setCurrentIndexEx(int i);
|
|
void setCurrentTextEx(const QString &text);
|
|
private slots:
|
|
void index_changed(int);
|
|
private:
|
|
int index;
|
|
void wheelEvent(QWheelEvent* e);
|
|
};
|
|
|
|
#endif // COMBOBOXEX_H
|