2018-07-11 19:18:50 +01:00
|
|
|
#ifndef NOSCROLLCOMBOBOX_H
|
|
|
|
#define NOSCROLLCOMBOBOX_H
|
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
|
|
|
|
class NoScrollComboBox : public QComboBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit NoScrollComboBox(QWidget *parent = nullptr);
|
|
|
|
void wheelEvent(QWheelEvent *event);
|
2022-10-19 18:34:43 +01:00
|
|
|
void setTextItem(const QString &text);
|
2023-08-23 07:32:32 +01:00
|
|
|
void setNumberItem(int value);
|
2018-07-11 19:18:50 +01:00
|
|
|
|
|
|
|
private:
|
2023-08-23 07:32:32 +01:00
|
|
|
void setItem(int index, const QString &text);
|
2018-07-11 19:18:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NOSCROLLCOMBOBOX_H
|