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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
845 B
C++
Raw Normal View History

#ifndef CSV_WORLD_DIALOGUESPINBOX_H
#define CSV_WORLD_DIALOGUESPINBOX_H
#include <QDoubleSpinBox>
#include <QSpinBox>
namespace CSVWorld
{
class DialogueSpinBox : public QSpinBox
{
Q_OBJECT
public:
2020-11-13 07:39:47 +00:00
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:
2020-11-13 07:39:47 +00:00
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