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