porymap/include/ui/noscrollcombobox.h

22 lines
450 B
C
Raw Normal View History

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