X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPrintNomencl.cpp;h=8b80a8d874cc7b57eb4633105526e513e6f03f9e;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=a63866b703f329f44d7b230968ee888b149a4fcd;hpb=c881b9f49a187ab053a9789fce82ade38257ecaf;p=lyx.git diff --git a/src/frontends/qt4/GuiPrintNomencl.cpp b/src/frontends/qt4/GuiPrintNomencl.cpp index a63866b703..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,11 +129,11 @@ void GuiPrintNomencl::applyView() } -bool GuiPrintNomencl::isValid() +bool GuiPrintNomencl::isValid() const { - return (setWidthCO->itemData( + return setWidthCO->itemData( setWidthCO->currentIndex()).toString() != "custom" - || !valueLE->text().isEmpty()); + || !valueLE->text().isEmpty(); }