31 #ifndef LONGLONGSPINBOX_H
32 #define LONGLONGSPINBOX_H
34 #include <QAbstractSpinBox>
48 QString prefix()
const;
49 void setPrefix(
const QString &prefix);
51 QString suffix()
const;
52 void setSuffix(
const QString &suffix);
54 QString cleanText()
const;
56 qint64 singleStep()
const;
57 void setSingleStep(qint64 val);
59 qint64 minimum()
const;
60 void setMinimum(qint64 min);
62 qint64 maximum()
const;
63 void setMaximum(qint64 max);
65 void setRange(qint64 min, qint64 max);
67 int displayIntegerBase()
const;
68 void setDisplayIntegerBase(
int base);
70 virtual QSize minimumSizeHint()
const override;
72 virtual bool event(QEvent *event)
override;
75 QValidator::State validate(QString &input,
int &pos)
const override;
76 virtual qint64 valueFromText(
const QString &text);
77 virtual QString textFromValue(qint64 val)
const;
78 void fixup(QString &str)
const override;
80 QString stripped(
const QString &text,
int *pos =
nullptr)
const;
81 qint64 validateAndInterpret(QString &input,
int &pos, QValidator::State &state)
const;
82 virtual StepEnabled stepEnabled()
const override;
83 virtual void stepBy(
int steps)
override;
84 virtual void setLineEdit(QLineEdit *edit);
88 void setValue(qint64 val);
91 void lineEditChanged(
const QString &
t);
94 void valueChanged(qint64 val);
95 void valueChanged(
const QString &val);
98 qint64 m_value, m_singleStep, m_min, m_max;
99 QString m_prefix, m_suffix;
101 bool m_showGroupSeparator;
102 mutable QSize m_cachedMinSize;
107 #endif // LONGLONGSPINBOX_H