mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 15:46:16 +00:00
GuiTabular: set focus on column width LE if custom is selected
This commit is contained in:
parent
a8d367e76f
commit
4d80cd60ea
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user