mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
37 lines
845 B
C++
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
|