diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp
index 829828b047..e0097c8d99 100644
--- a/src/frontends/qt4/FindAndReplace.cpp
+++ b/src/frontends/qt4/FindAndReplace.cpp
@@ -50,6 +50,10 @@ FindAndReplace::FindAndReplace(GuiView & parent)
find_work_area_->setGuiView(parent);
find_work_area_->init();
setFocusProxy(find_work_area_);
+ replace_work_area_->setGuiView(parent);
+ replace_work_area_->init();
+ // We don't want two cursors blinking.
+ replace_work_area_->stopBlinkingCursor();
}
@@ -76,14 +80,6 @@ bool FindAndReplace::eventFilter(QObject *obj, QEvent *event)
}
-void FindAndReplace::selectAll()
-{
- dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
- dispatch(FuncRequest(LFUN_BUFFER_END_SELECT));
- find_work_area_->redraw();
-}
-
-
void FindAndReplace::findAdv(bool casesensitive,
bool matchword, bool backwards,
bool expandmacros, bool ignoreformat)
@@ -135,8 +131,12 @@ void FindAndReplace::findAdv(bool casesensitive,
bool FindAndReplace::initialiseParams(std::string const &)
{
+ find_work_area_->redraw();
+ replace_work_area_->setEnabled(true);
+ replace_work_area_->redraw();
find_work_area_->setFocus();
- selectAll();
+ dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
+ dispatch(FuncRequest(LFUN_BUFFER_END_SELECT));
return true;
}
diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp
index 8e3c6911c4..4f59041b1f 100644
--- a/src/frontends/qt4/GuiWorkArea.cpp
+++ b/src/frontends/qt4/GuiWorkArea.cpp
@@ -1230,7 +1230,6 @@ EmbeddedWorkArea::EmbeddedWorkArea(QWidget * w): GuiWorkArea(w)
buffer_->setUnnamed(true);
buffer_->setFullyLoaded(true);
setBuffer(*buffer_);
- setUpdatesEnabled(false);
setDialogMode(true);
}
diff --git a/src/frontends/qt4/ui/FindAndReplaceUi.ui b/src/frontends/qt4/ui/FindAndReplaceUi.ui
index c6cbb6900b..08440d2355 100644
--- a/src/frontends/qt4/ui/FindAndReplaceUi.ui
+++ b/src/frontends/qt4/ui/FindAndReplaceUi.ui
@@ -5,8 +5,8 @@
0
0
- 338
- 400
+ 240
+ 432
@@ -33,17 +33,17 @@
-
+
- 4
- 4
- 301
- 381
+ 20
+ 20
+ 212
+ 404
- -
+
-
true
@@ -53,14 +53,14 @@
0
0
- 297
- 123
+ 208
+ 69
- -
+
-
false
@@ -70,14 +70,14 @@
- -
+
-
Case &sensitive
- -
+
-
false
@@ -87,7 +87,7 @@
- -
+
-
true
@@ -100,7 +100,7 @@
- -
+
-
true
@@ -113,7 +113,7 @@
- -
+
-
true
@@ -126,7 +126,7 @@
- -
+
-
false
@@ -136,7 +136,7 @@
- -
+
-
false
@@ -146,14 +146,14 @@
- -
+
-
&Close
- -
+
-
false
@@ -245,7 +245,7 @@
- -
+
-
true
@@ -265,50 +265,75 @@
RegExp
-
+
+
+ true
+
+
+
+ 10
+ 52
+ 101
+ 20
+
+
+
+
+ 0
+ 0
+
+
-
-
-
- true
-
-
-
- 0
- 0
-
-
-
-
-
- Match...
-
-
- -
-
- Anything
-
-
- -
-
- Any non-empty
-
-
- -
-
- Any word
-
-
- -
-
- Any number
-
-
-
+
+ Match...
+
-
+ -
+
+ Anything
+
+
+ -
+
+ Any non-empty
+
+
+ -
+
+ Any word
+
+
+ -
+
+ Any number
+
+
+
+
+
+ -
+
+
+ true
+
+
+
+
+ 0
+ 0
+ 208
+ 69
+
+
+
+ replace_work_area_
+ layoutWidget
+ replace_work_area_
+ groupBox_3