1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 16:53:53 +00:00
openmw/apps/opencs/view/world/dialoguespinbox.hpp

37 lines
845 B
C++
Raw Normal View History

#ifndef CSV_WORLD_DIALOGUESPINBOX_H
#define CSV_WORLD_DIALOGUESPINBOX_H
#include <QDoubleSpinBox>
2022-09-22 18:26:05 +00:00
#include <QSpinBox>
namespace CSVWorld
{
class DialogueSpinBox : public QSpinBox
{
Q_OBJECT
2022-09-22 18:26:05 +00:00
public:
DialogueSpinBox(QWidget* parent = nullptr);
2022-09-22 18:26:05 +00:00
protected:
void focusInEvent(QFocusEvent* event) override;
void focusOutEvent(QFocusEvent* event) override;
void wheelEvent(QWheelEvent* event) override;
};
class DialogueDoubleSpinBox : public QDoubleSpinBox
{
Q_OBJECT
2022-09-22 18:26:05 +00:00
public:
DialogueDoubleSpinBox(QWidget* parent = nullptr);
2022-09-22 18:26:05 +00:00
protected:
void focusInEvent(QFocusEvent* event) override;
void focusOutEvent(QFocusEvent* event) override;
void wheelEvent(QWheelEvent* event) override;
};
}
#endif // CSV_WORLD_DIALOGUESPINBOX_H