]> git.lyx.org Git - features.git/commitdiff
use validator rather than inputMask for line edit validation (part 2)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 22 Jul 2019 09:31:56 +0000 (11:31 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 22 Jul 2019 09:31:56 +0000 (11:31 +0200)
src/frontends/qt/GuiTabular.cpp
src/frontends/qt/ui/TabularUi.ui

index 435f44098967165d5432e5032e3687c9dd70989b..1df93d86ab27911b3c9b3dee2b0a3b3dd3d1ca4a 100644 (file)
@@ -178,7 +178,7 @@ GuiTabular::GuiTabular(QWidget * parent)
        connect(tabularWidthED, SIGNAL(textEdited(const QString &)),
                this, SLOT(checkEnabled()));
 
-       decimalPointED->setInputMask("X; ");
+       decimalPointED->setValidator(new QRegExpValidator(QRegExp("\\S"), this));
        decimalPointED->setMaxLength(1);
 
        // initialize the length validator
index 4f267bcf0bca6063e7cbdb260c68ac9eda456331..fca7723562f3e5d9df081beff9d479b329a6f9f5 100644 (file)
                 </property>
                 <property name="maximumSize">
                  <size>
-                  <width>20</width>
+                  <width>40</width>
                   <height>16777215</height>
                  </size>
                 </property>