]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFloat.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiFloat.cpp
index 25d0f1aacbf73b86fe78fbaa9c1cecf24efaf13b..773a7f0ba88dacb917789f8c568614f59adf8b4d 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_)));
 }
 
 
@@ -104,4 +95,4 @@ Dialog * createGuiFloat(GuiView & lv) { return new GuiFloat(lv); }
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiFloat_moc.cpp"
+#include "moc_GuiFloat.cpp"