X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPrintNomencl.cpp;h=8b80a8d874cc7b57eb4633105526e513e6f03f9e;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=dfa95fb3da286531cc248135ecad9d0169ae4e50;hpb=9d02de79d82294b36a38609403215535d3efc317;p=lyx.git diff --git a/src/frontends/qt4/GuiPrintNomencl.cpp b/src/frontends/qt4/GuiPrintNomencl.cpp index dfa95fb3da..8b80a8d874 100644 --- a/src/frontends/qt4/GuiPrintNomencl.cpp +++ b/src/frontends/qt4/GuiPrintNomencl.cpp @@ -65,9 +65,9 @@ GuiPrintNomencl::GuiPrintNomencl(GuiView & lv) // initialize the length validator bc().addCheckedLineEdit(valueLE, valueLA); - setWidthCO->addItem(qt_("Predefined"), + setWidthCO->addItem(qt_("Default"), QVariant(toqstr("none"))); - setWidthCO->addItem(qt_("Auto-determined"), + setWidthCO->addItem(qt_("Longest label width"), QVariant(toqstr("auto"))); setWidthCO->addItem(qt_("Custom"), QVariant(toqstr("custom"))); @@ -129,6 +129,14 @@ void GuiPrintNomencl::applyView() } +bool GuiPrintNomencl::isValid() const +{ + return setWidthCO->itemData( + setWidthCO->currentIndex()).toString() != "custom" + || !valueLE->text().isEmpty(); +} + + bool GuiPrintNomencl::initialiseParams(std::string const & data) { InsetCommand::string2params("nomencl_print", data, params_);