diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 3f7e3c6e0e..12803fa6ae 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1254,7 +1254,7 @@ GuiDocument::GuiDocument(GuiView & lv) numberingModule->tocTW->headerItem()->setText(2, qt_("Appears in TOC")); setSectionResizeMode(numberingModule->tocTW->header(), QHeaderView::ResizeToContents); connect(numberingModule->linenoCB, SIGNAL(toggled(bool)), - this, SLOT(linenoToggled())); + this, SLOT(linenoToggled(bool))); connect(numberingModule->linenoCB, SIGNAL(clicked()), this, SLOT(change_adaptor())); connect(numberingModule->linenoLE, SIGNAL(textChanged(QString)), @@ -3816,6 +3816,7 @@ void GuiDocument::paramsToDialog() numberingModule->linenoCB->setChecked(bp_.use_lineno); numberingModule->linenoLE->setEnabled(bp_.use_lineno); + numberingModule->linenoLA->setEnabled(bp_.use_lineno); numberingModule->linenoLE->setText(toqstr(bp_.lineno_opts)); // bullets @@ -4945,9 +4946,10 @@ void GuiDocument::allPackages(int col) } -void GuiDocument::linenoToggled() +void GuiDocument::linenoToggled(bool on) { - numberingModule->linenoLE->setEnabled(numberingModule->linenoCB->isChecked()); + numberingModule->linenoLE->setEnabled(on); + numberingModule->linenoLA->setEnabled(on); } diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index 01fb0de0ef..999be46f7a 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -161,7 +161,7 @@ private Q_SLOTS: void moduleFilterPressed(); void moduleFilterChanged(const QString & text); void resetModuleFilter(); - void linenoToggled(); + void linenoToggled(bool); private: /// validate listings parameters and return an error message, if any QString validateListingsParameters(); diff --git a/src/frontends/qt4/ui/NumberingUi.ui b/src/frontends/qt4/ui/NumberingUi.ui index 12b9657283..028bbf89f1 100644 --- a/src/frontends/qt4/ui/NumberingUi.ui +++ b/src/frontends/qt4/ui/NumberingUi.ui @@ -6,7 +6,7 @@ 0 0 - 310 + 414 323 @@ -33,11 +33,40 @@ + + Add line numbers to the document + L&ine numbering + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + O&ptions: + + + linenoLE + + +