X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiListings.cpp;h=52c03e9508ccb4c6f13f1ab859cbc772bfaffbac;hb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;hp=b8702114d06de3c4317ca1a41a94ed98c0db66f4;hpb=b89cc942eb458284f40f4d4e7db58890c3288979;p=lyx.git diff --git a/src/frontends/qt4/GuiListings.cpp b/src/frontends/qt4/GuiListings.cpp index b8702114d0..52c03e9508 100644 --- a/src/frontends/qt4/GuiListings.cpp +++ b/src/frontends/qt4/GuiListings.cpp @@ -19,10 +19,10 @@ #include "insets/InsetListingsParams.h" #include "support/debug.h" +#include "support/gettext.h" #include "support/lstrings.h" #include -#include #include #include #include @@ -158,10 +158,9 @@ char const * font_styles_gui[] = GuiListings::GuiListings(GuiView & lv) - : GuiDialog(lv, "listings") + : GuiDialog(lv, "listings", qt_("Program Listing Settings")) { setupUi(this); - setViewTitle(_("Program Listing Settings")); connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); @@ -238,13 +237,6 @@ GuiListings::GuiListings(GuiView & lv) } -void GuiListings::closeEvent(QCloseEvent * e) -{ - slotClose(); - e->accept(); -} - - void GuiListings::change_adaptor() { changed(); @@ -433,7 +425,7 @@ void GuiListings::applyView() } -static string plainParam(std::string const & par) +static string plainParam(string const & par) { // remove enclosing braces if (prefixIs(par, "{") && suffixIs(par, "}"))