28 d->setValue(
value, overwriteExpression);
33 return d->isLastValid();
38 return d->veryCleanText();
43 return d->validate(input, pos);
48 return d->valueFromText(text);
53 return d->textFromValue(
value);
float value(const T *src, size_t ch)
The KisIntParseSpinBox class is a cleverer SpinBox, able to parse arithmetic expressions.
int valueFromText(const QString &text) const override
virtual QString veryCleanText() const
This virtual function is similar to cleanText(). But child classes may reimplement it to further proc...
bool isLastValid() const
Get if the last expression entered is a valid one.
QScopedPointer< KisParseSpinBoxPrivate< KisIntParseSpinBox, QSpinBox > > d
void setValue(int value, bool overwriteExpression=false)
Set the value of the spinbox.
QValidator::State validate(QString &input, int &pos) const override
void stepBy(int steps) override
This is a reimplementation of QSpinBox::stepBy that uses setValue.
~KisIntParseSpinBox() override
QString textFromValue(int value) const override
KisIntParseSpinBox(QWidget *parent=0)