diff options
Diffstat (limited to 'src/filterbar.h')
| -rw-r--r-- | src/filterbar.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/filterbar.h b/src/filterbar.h index 5f5ca9dc1..3f5c3cbfd 100644 --- a/src/filterbar.h +++ b/src/filterbar.h @@ -20,14 +20,11 @@ #ifndef FILTERBAR_H #define FILTERBAR_H -#include <qwidget.h> -//Added by qt3to4: -#include <QKeyEvent> -#include <QLabel> +#include <QWidget> class QLabel; +class QToolButton; class KLineEdit; -class KPushButton; /** * @brief Provides an input field for filtering the currently shown items. @@ -44,25 +41,20 @@ public: signals: /** - * Signal that reports the name filter has been - * changed to \a nameFilter. - */ + * Signal that reports the name filter has been + * changed to \a nameFilter. + */ void signalFilterChanged(const QString& nameFilter); -public slots: - /** @see QWidget::hide() */ - virtual void hide(); - - /** @see QWidget::show() */ - virtual void show(); - protected: + virtual void hideEvent(QHideEvent* event); + virtual void showEvent(QShowEvent* event); virtual void keyReleaseEvent(QKeyEvent* event); private: QLabel* m_filter; KLineEdit* m_filterInput; - KPushButton* m_close; + QToolButton* m_close; }; #endif |
