]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFloat.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiFloat.cpp
index 25d0f1aacbf73b86fe78fbaa9c1cecf24efaf13b..9fedf75f8890d7fc890b0d61037ac4765ebacc77 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_);
@@ -81,7 +72,7 @@ void GuiFloat::applyView()
 
 bool GuiFloat::initialiseParams(string const & data)
 {
-       InsetFloatMailer::string2params(data, params_);
+       InsetFloat::string2params(data, params_);
        return true;
 }
 
@@ -94,7 +85,7 @@ void GuiFloat::clearParams()
 
 void GuiFloat::dispatchParams()
 {
-       dispatch(FuncRequest(getLfun(), InsetFloatMailer::params2string(params_)));
+       dispatch(FuncRequest(getLfun(), InsetFloat::params2string(params_)));
 }