GuiTabular: set focus on column width LE if custom is selected

This commit is contained in:
Juergen Spitzmueller 2018-06-25 10:34:57 +02:00
parent a8d367e76f
commit 4d80cd60ea
2 changed files with 9 additions and 2 deletions

View 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

View 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