]> 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 c29a4e24d5fb24192dada1a76cdfd8c875ee6435..b52d1ea3529c490f393760fe0135caf7ee875787 100644 (file)
 
 #include <QPushButton>
 #include <QLineEdit>
-#include <QCloseEvent>
-
-using std::string;
-using std::vector;
 
+using namespace std;
 
 namespace lyx {
 namespace frontend {
@@ -75,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_);
@@ -147,13 +143,6 @@ GuiBox::GuiBox(GuiView & lv)
 }
 
 
-void GuiBox::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiBox::change_adaptor()
 {
        changed();