#ifndef FILTERBAR_H
#define FILTERBAR_H
-#include <QWidget>
+#include <QtGui/QWidget>
class QLabel;
class QToolButton;
class KLineEdit;
-class DolphinMainWindow;
/**
* @brief Provides an input field for filtering the currently shown items.
FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
+public slots:
+ /** Clears the input field. */
+ void clear();
+
signals:
/**
* Signal that reports the name filter has been
/**
* Emitted as soon as the filterbar should get closed.
*/
- void closed();
+ void closeRequest();
protected:
- virtual void hideEvent(QHideEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);
-private slots:
- void emitClose();
-
private:
QLabel* m_filter;
KLineEdit* m_filterInput;