]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiERT.cpp
index 9910b47c9f5fcd21abc6a9efca843afc4de0d102..0ff93994657b1c75b61292123158413e036f9410 100644 (file)
 
 #include <QRadioButton>
 #include <QPushButton>
-#include <QCloseEvent>
 
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
 GuiERT::GuiERT(GuiView & lv)
-       : GuiDialog(lv, "ert"), status_(InsetERT::Collapsed)
+       : GuiDialog(lv, "ert", qt_("TeX Code Settings")), status_(InsetERT::Collapsed)
 {
        setupUi(this);
-       setViewTitle(_("TeX Code Settings"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
@@ -41,13 +40,6 @@ GuiERT::GuiERT(GuiView & lv)
 }
 
 
-void GuiERT::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiERT::change_adaptor()
 {
        changed();
@@ -72,7 +64,7 @@ void GuiERT::updateContents()
 }
 
 
-bool GuiERT::initialiseParams(std::string const & data)
+bool GuiERT::initialiseParams(string const & data)
 {
        InsetERTMailer::string2params(data, status_);
        return true;