]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiTabular.cpp
GuiTabular: set focus on column width LE if custom is selected
[features.git] / src / frontends / qt4 / GuiTabular.cpp
index 78c237d332bf15fa310549c200b4974173394b68..973bba0aab7899d9c4f8a28e5dfc1781f2787270 100644 (file)
@@ -131,8 +131,6 @@ GuiTabular::GuiTabular(QWidget * parent)
                this, SLOT(checkEnabled()));
        connect(specialAlignmentED, SIGNAL(textEdited(const QString &)),
                this, SLOT(checkEnabled()));
-       connect(columnTypeCO, SIGNAL(activated(int)),
-               this, SLOT(checkEnabled()));
        connect(columnWidthED, SIGNAL(textEdited(const QString &)),
                this, SLOT(checkEnabled()));
        connect(columnWidthUnitLC, SIGNAL(selectionChanged(lyx::Length::UNIT)),
@@ -203,6 +201,14 @@ void GuiTabular::on_interlinespaceCO_activated(int index)
 }
 
 
+void GuiTabular::on_columnTypeCO_activated(int index)
+{
+       checkEnabled();
+       if (index == 2)
+               columnWidthED->setFocus();
+}
+
+
 void GuiTabular::enableWidgets() const
 {
        // if there is a LaTeX argument, the width and alignment will be overwritten