]> 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 138296fa3f86fcc9a09c6ae71b701134e1b5a4d8..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,7 +178,7 @@ GuiTabular::GuiTabular(QWidget * parent)
        connect(tabularWidthED, SIGNAL(textEdited(const QString &)),
                this, SLOT(checkEnabled()));
 
-       decimalPointED->setValidator(new QRegExpValidator(QRegExp("\\S"), this));
+       decimalPointED->setValidator(new QRegularExpressionValidator(QRegularExpression("\\S"), this));
        decimalPointED->setMaxLength(1);
 
        // initialize the length validator