From 67138dcf8e3a1788928fd31256b29a257dae5eee Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Sun, 22 Aug 2010 04:06:54 +0200 Subject: 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. --- src/findbar.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/findbar.h') 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; -- cgit v1.2.1