2015-05-28 19:44:35 +00:00
|
|
|
#ifndef CSV_WORLD_DIALOGUESPINBOX_H
|
|
|
|
#define CSV_WORLD_DIALOGUESPINBOX_H
|
|
|
|
|
|
|
|
#include <QSpinBox>
|
|
|
|
#include <QDoubleSpinBox>
|
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class DialogueSpinBox : public QSpinBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2020-11-13 07:39:47 +00:00
|
|
|
DialogueSpinBox (QWidget *parent = nullptr);
|
2015-05-28 19:44:35 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void focusInEvent(QFocusEvent *event) override;
|
|
|
|
void focusOutEvent(QFocusEvent *event) override;
|
|
|
|
void wheelEvent(QWheelEvent *event) override;
|
2015-05-28 19:44:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DialogueDoubleSpinBox : public QDoubleSpinBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2020-11-13 07:39:47 +00:00
|
|
|
DialogueDoubleSpinBox (QWidget *parent = nullptr);
|
2015-05-28 19:44:35 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void focusInEvent(QFocusEvent *event) override;
|
|
|
|
void focusOutEvent(QFocusEvent *event) override;
|
|
|
|
void wheelEvent(QWheelEvent *event) override;
|
2015-05-28 19:44:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CSV_WORLD_DIALOGUESPINBOX_H
|