┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/filterbar.h
diff options
context:
space:
mode:
authorDominik Haumann <[email protected]>2006-11-28 17:22:02 +0000
committerDominik Haumann <[email protected]>2006-11-28 17:22:02 +0000
commitc86d00c8be2081b7815f641a0d29eb770c713018 (patch)
tree074a87e8acc3bd60b21ec3b9dd71d7200ef64867 /src/filterbar.h
parentd3648471e03ebedc1c8f340b92cae4d26312415d (diff)
port to Qt4
svn path=/trunk/playground/utils/dolphin/; revision=608854
Diffstat (limited to 'src/filterbar.h')
-rw-r--r--src/filterbar.h24
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