summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-02-19 15:27:58 +0100
committerYoann Laissus <yoann.laissus@gmail.com>2010-02-19 15:27:58 +0100
commite88fc26105ce8ba41ac988ff428596baefd443d7 (patch)
tree60f287c523fb52cee782662a714ef00109627d65 /src/findbar.cpp
parentWorkaround the bug of qtwebkit in the function findText(). An empty string do... (diff)
downloadrekonq-e88fc26105ce8ba41ac988ff428596baefd443d7.tar.xz
The text is now instantly checked when the checkbox match case is toggled
Fix the selected text when the findBar is closed and open
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index d8ae08cc..2b464978 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -64,7 +64,7 @@ FindBar::FindBar(KMainWindow *mainwindow)
hideButton->setAutoRaise(true);
hideButton->setIcon(KIcon("dialog-close"));
connect(hideButton, SIGNAL(clicked()), this, SLOT(hide()));
- connect(hideButton, SIGNAL(clicked()), this, SLOT(findNext()));
+ connect(hideButton, SIGNAL(clicked()), mainwindow, SLOT(findNext()));
layout->addWidget(hideButton);
layout->setAlignment(hideButton, Qt::AlignLeft | Qt::AlignTop);
@@ -92,6 +92,7 @@ FindBar::FindBar(KMainWindow *mainwindow)
// Case sensitivity. Deliberately set so this is off by default.
m_matchCase->setCheckState(Qt::Unchecked);
m_matchCase->setTristate(false);
+ connect(m_matchCase, SIGNAL(toggled(bool)), mainwindow, SLOT(findNext()));
layout->addWidget(m_matchCase);
// stretching widget on the left
@@ -143,7 +144,7 @@ void FindBar::show()
// emit a new find signal with the current text
QString temp = m_lineEdit->text();
m_lineEdit->setText("");
- m_lineEdit->setText(m_lineEdit->text());
+ m_lineEdit->setText(temp);
}