]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFloat.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiFloat.cpp
index 25d0f1aacbf73b86fe78fbaa9c1cecf24efaf13b..aae2de393105efe2f95449d9f2bf9b4deb9f85f2 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "insets/InsetFloat.h"
 
-#include <QCloseEvent>
 #include <QPushButton>
 
 using namespace std;
@@ -26,11 +25,10 @@ namespace lyx {
 namespace frontend {
 
 GuiFloat::GuiFloat(GuiView & lv)
-       : GuiDialog(lv, "float")
+       : GuiDialog(lv, "float", qt_("Float Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Float Settings"));
-
+       
        connect(restorePB, SIGNAL(clicked()), this, SLOT(slotRestore()));
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
@@ -60,13 +58,6 @@ void GuiFloat::change_adaptor()
 }
 
 
-void GuiFloat::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiFloat::updateContents()
 {
        floatFP->set(params_);