Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/kis_int_parse_spin_box.cpp
Show All 24 Lines | |||||
25 | #include <QIcon> | 25 | #include <QIcon> | ||
26 | #include <QFile> | 26 | #include <QFile> | ||
27 | #include <QLineEdit> | 27 | #include <QLineEdit> | ||
28 | 28 | | |||
29 | KisIntParseSpinBox::KisIntParseSpinBox(QWidget *parent) : | 29 | KisIntParseSpinBox::KisIntParseSpinBox(QWidget *parent) : | ||
30 | QSpinBox(parent), | 30 | QSpinBox(parent), | ||
31 | boolLastValid(true) | 31 | boolLastValid(true) | ||
32 | { | 32 | { | ||
33 | setAlignment(Qt::AlignRight); | ||||
34 | | ||||
33 | lastExprParsed = new QString("0"); | 35 | lastExprParsed = new QString("0"); | ||
34 | 36 | | |||
35 | connect(this, SIGNAL(noMoreParsingError()), | 37 | connect(this, SIGNAL(noMoreParsingError()), | ||
36 | this, SLOT(clearErrorStyle())); | 38 | this, SLOT(clearErrorStyle())); | ||
37 | 39 | | |||
38 | //hack to let the clearError be called, even if the value changed method is the one from QSpinBox. | 40 | //hack to let the clearError be called, even if the value changed method is the one from QSpinBox. | ||
39 | connect(this, SIGNAL(valueChanged(int)), | 41 | connect(this, SIGNAL(valueChanged(int)), | ||
40 | this, SLOT(clearError())); | 42 | this, SLOT(clearError())); | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |