summaryrefslogtreecommitdiff
path: root/src/findbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/findbar.h')
-rw-r--r--src/findbar.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/findbar.h b/src/findbar.h
index bd3c5960..ece34f83 100644
--- a/src/findbar.h
+++ b/src/findbar.h
@@ -23,26 +23,28 @@
#include <KLineEdit>
#include <KToolBar>
-#include <QWidget>
+#include <QMainWindow>
class FindBar : public KToolBar
{
Q_OBJECT
public:
- FindBar(QWidget *parent = 0);
+ FindBar(QMainWindow *parent);
~FindBar();
KLineEdit *lineEdit();
public slots:
void clear();
- void showFind();
- void slotFindNext();
- void slotFindPrevious();
+ void showFindBar();
+
+protected Q_SLOTS:
+ void keyPressEvent(QKeyEvent* event);
-private:
- void initializeFindWidget();
+signals:
+ void searchString(const QString &);
+private:
KLineEdit *m_lineEdit;
QWidget *m_centralWidget;
};