]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBox.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiBox.cpp
index 91243256fd1a30235ccf462b7abdc85f7d47ea96..b52d1ea3529c490f393760fe0135caf7ee875787 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <QPushButton>
 #include <QLineEdit>
-#include <QCloseEvent>
 
 using namespace std;
 
@@ -73,10 +72,9 @@ void box_gui_tokens_special_length(vector<string> & ids,
 
 
 GuiBox::GuiBox(GuiView & lv)
-       : GuiDialog(lv, "box"), params_("")
+       : GuiDialog(lv, "box", qt_("Box Settings")), params_("")
 {
        setupUi(this);
-       setViewTitle(_("Box Settings"));
 
        // fill the box type choice
        box_gui_tokens(ids_, gui_names_);
@@ -145,13 +143,6 @@ GuiBox::GuiBox(GuiView & lv)
 }
 
 
-void GuiBox::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiBox::change_adaptor()
 {
        changed();