From c86d00c8be2081b7815f641a0d29eb770c713018 Mon Sep 17 00:00:00 2001 From: Dominik Haumann Date: Tue, 28 Nov 2006 17:22:02 +0000 Subject: port to Qt4 svn path=/trunk/playground/utils/dolphin/; revision=608854 --- src/filterbar.h | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'src/filterbar.h') 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 -//Added by qt3to4: -#include -#include +#include 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 -- cgit v1.3