QValidator::State LengthValidator::validate(QString & qtext, int &) const
{
bool ok;
- double d = qtext.trimmed().toDouble(&ok);
+ qtext.trimmed().toDouble(&ok);
if (qtext.isEmpty() || ok)
return QValidator::Acceptable;
}
+LengthValidator * unsignedGlueLengthValidator(QLineEdit * ed)
+{
+ LengthValidator * v = new LengthValidator(ed);
+ v->setBottom(GlueLength());
+ return v;
+}
+
+
LengthAutoValidator::LengthAutoValidator(QWidget * parent, QString const autotext)
: LengthValidator(parent),
autotext_(autotext)