]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiTabular.cpp
Make code a bit easier to read
[lyx.git] / src / frontends / qt / GuiTabular.cpp
index 9526e9a0e941bdd25b139ea8b819b06276fbe4f1..84012beb8ebb5b8b7eccacb3bc8cce824a0487da 100644 (file)
@@ -91,6 +91,8 @@ GuiTabular::GuiTabular(QWidget * parent)
                this, SLOT(checkEnabled()));
        connect(hAlignCO, SIGNAL(activated(int)),
                this, SLOT(checkEnabled()));
+       connect(decimalPointED, SIGNAL(textEdited(const QString &)),
+               this, SLOT(checkEnabled()));
        connect(vAlignCO, SIGNAL(activated(int)),
                this, SLOT(checkEnabled()));
        connect(multicolumnCB, SIGNAL(clicked()),
@@ -176,11 +178,7 @@ GuiTabular::GuiTabular(QWidget * parent)
        connect(tabularWidthED, SIGNAL(textEdited(const QString &)),
                this, SLOT(checkEnabled()));
 
-#if QT_VERSION < 0x060000
-       decimalPointED->setValidator(new QRegExpValidator(QRegExp("\\S"), this));
-#else
        decimalPointED->setValidator(new QRegularExpressionValidator(QRegularExpression("\\S"), this));
-#endif
        decimalPointED->setMaxLength(1);
 
        // initialize the length validator