1 #ifndef FACT_SpinBoxHex 2 #define FACT_SpinBoxHex 7 class QRegExpValidator;
17 QValidator::State
validate(QString &txt,
int &)
const 22 return ok ? QValidator::Acceptable : QValidator::Invalid;
27 return QString::number(val, 16).right(8).rightJustified(8,
'0').toLower().insert(4,
':');
33 return txt.toInt(&ok, 16);
A QSpinBox which displays the value as hex-value.
QValidator::State validate(QString &txt, int &) const
int valueFromText(const QString &txt) const
QString textFromValue(int val) const