summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-21 00:14:38 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-21 00:14:38 +0100
commit3778c4b81b45c09e72c78df4ead587f697ea3f09 (patch)
tree16a800ce3e7bbb62abc6b0264d3d65d08da7701d /src/findbar.cpp
parentRestored addTabButton ctor initialization (diff)
parentMerge commit 'refs/merge-requests/92' of git://gitorious.org/rekonq/mainline ... (diff)
downloadrekonq-3778c4b81b45c09e72c78df4ead587f697ea3f09.tar.xz
Merge branch 'mr92'
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 1cb16e3f..6b92f130 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -64,6 +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()), mainwindow, SLOT(findNext()));
layout->addWidget(hideButton);
layout->setAlignment(hideButton, Qt::AlignLeft | Qt::AlignTop);
@@ -91,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(matchCaseUpdate()));
layout->addWidget(m_matchCase);
// stretching widget on the left
@@ -138,6 +140,11 @@ void FindBar::show()
QWidget::show();
m_hideTimer->start(60000);
+
+ // emit a new find signal with the current text
+ QString temp = m_lineEdit->text();
+ m_lineEdit->setText("");
+ m_lineEdit->setText(temp);
}