]> 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 c44795068cf85492a013cd685a54a6b8a2783bec..0ff93994657b1c75b61292123158413e036f9410 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <QRadioButton>
 #include <QPushButton>
-#include <QCloseEvent>
 
 using namespace std;
 
@@ -26,10 +25,9 @@ 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()));
@@ -42,13 +40,6 @@ GuiERT::GuiERT(GuiView & lv)
 }
 
 
-void GuiERT::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiERT::change_adaptor()
 {
        changed();