1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/apps/opencs/view/world/dialoguespinbox.hpp
2022-09-22 21:35:26 +03:00

37 lines
845 B
C++

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