From 9cdff6078e0e94349c684bd3b862fdea60d3f159 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sun, 21 Feb 2010 22:07:49 +0100 Subject: Clean and optimize the findBar code. Use the searchString signal. Fix the selection of the lineEdit text when the findBar is reopen. --- src/findbar.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/findbar.h') diff --git a/src/findbar.h b/src/findbar.h index d56b8d25..8f220c92 100644 --- a/src/findbar.h +++ b/src/findbar.h @@ -35,11 +35,9 @@ // Qt Includes #include #include -#include // Forward Declarations class KMainWindow; -class QKeyEvent; class QString; @@ -52,15 +50,11 @@ public: ~FindBar(); KLineEdit *lineEdit() const; bool matchCase() const; + void notifyMatch(bool match); public slots: - void clear(); void show(); void hide(); - void notifyMatch(bool match); - -protected Q_SLOTS: - void keyPressEvent(QKeyEvent* event); signals: void searchString(const QString &); -- cgit v1.2.1