]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Validator.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / Validator.cpp
index 59655eb004485b2e3ebc5a833d09425aca538d6e..e156dcb099dedbe83a86326438d197cae0c494b3 100644 (file)
@@ -89,6 +89,14 @@ LengthValidator * unsignedLengthValidator(QLineEdit * ed)
 }
 
 
+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)