]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSearch.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiSearch.cpp
index 814b208a56117b7978cdfc03a7e6e0afbc78e6a0..e1ee1833362ea1559f15f97b28af7760beb518d1 100644 (file)
 
 #include "GuiSearch.h"
 
+#include "qt_helpers.h"
+
 #include "FuncRequest.h"
 #include "lyxfind.h"
 
-#include "qt_helpers.h"
-
 #include <QLineEdit>
-#include <QCloseEvent>
 #include <QShowEvent>
 
 using namespace std;
@@ -39,10 +38,9 @@ static void uniqueInsert(QComboBox * box, QString const & text)
 
 
 GuiSearch::GuiSearch(GuiView & lv)
-       : GuiDialog(lv, "findreplace")
+       : GuiDialog(lv, "findreplace", qt_("Find and Replace"))
 {
        setupUi(this);
-       setViewTitle(_("Find and Replace"));
 
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
        connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked()));
@@ -71,13 +69,6 @@ void GuiSearch::showEvent(QShowEvent * e)
 }
 
 
-void GuiSearch::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       GuiDialog::closeEvent(e);
-}
-
-
 void GuiSearch::findChanged()
 {
        if (findCO->currentText().isEmpty()) {