]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiNote.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiNote.cpp
index 2c432f3b3b2af20fc1bf828917dc4db31f4197bf..0768328096b945c69906f324be7ddabc52a1e4fc 100644 (file)
 
 #include "insets/InsetNote.h"
 
-#include <QCloseEvent>
-
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
 GuiNote::GuiNote(GuiView & lv)
-       : GuiDialog(lv, "note")
+       : GuiDialog(lv, "note", qt_("Note Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Note Settings"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
@@ -44,13 +40,6 @@ GuiNote::GuiNote(GuiView & lv)
 }
 
 
-void GuiNote::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiNote::change_adaptor()
 {
        changed();