summaryrefslogtreecommitdiff
path: root/src/findbar.h
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-08-22 04:06:54 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-08-22 04:18:37 +0200
commit67138dcf8e3a1788928fd31256b29a257dae5eee (patch)
tree5acfb521de78d5a09ec475b4e7baa288c1967041 /src/findbar.h
parentChange the Find action to show() instead of toggle() (diff)
downloadrekonq-67138dcf8e3a1788928fd31256b29a257dae5eee.tar.xz
Use the selected text as the default search string of the FindBar
The common behavior of the Find action is to start a search with the current selected text if any. This patch implement this behavior for Rekonq.
Diffstat (limited to 'src/findbar.h')
-rw-r--r--src/findbar.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/findbar.h b/src/findbar.h
index d82e9722..6451aac8 100644
--- a/src/findbar.h
+++ b/src/findbar.h
@@ -41,14 +41,14 @@
// Forward Declarations
class QString;
-
+class MainWindow;
class REKONQ_TESTS_EXPORT FindBar : public QWidget
{
Q_OBJECT
public:
- FindBar(QWidget *parent);
+ FindBar(MainWindow *parent);
~FindBar();
bool matchCase() const;
@@ -62,6 +62,7 @@ signals:
void visibilityChanged(bool);
private:
+ MainWindow *m_mainWindow;
KLineEdit *m_lineEdit;
QTimer *m_hideTimer;
QCheckBox *m_matchCase;