]> git.lyx.org Git - features.git/commitdiff
GuiTabular: set focus on column width LE if custom is selected
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 25 Jun 2018 08:34:57 +0000 (10:34 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 25 Jun 2018 08:34:57 +0000 (10:34 +0200)
src/frontends/qt4/GuiTabular.cpp
src/frontends/qt4/GuiTabular.h

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
index 20f7681780566eafe394a416c43dc7dccc19d5cb..908b4db8157dece7ea028fb978ded554c2832e3f 100644 (file)
@@ -36,6 +36,7 @@ private Q_SLOTS:
        void on_topspaceCO_activated(int index);
        void on_bottomspaceCO_activated(int index);
        void on_interlinespaceCO_activated(int index);
+       void on_columnTypeCO_activated(int index);
 
 private:
        /// \name InsetParamsWidget inherited methods