X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d8669c68e40a6571dfcbdf38e3281a4aeb8c2be6..148282e2d856b47ceb191eeef4c834118c8cdffd:/src/filterbar.h diff --git a/src/filterbar.h b/src/filterbar.h index b1d60232c..87aaa017e 100644 --- a/src/filterbar.h +++ b/src/filterbar.h @@ -20,12 +20,11 @@ #ifndef FILTERBAR_H #define FILTERBAR_H -#include +#include class QLabel; class QToolButton; class KLineEdit; -class DolphinMainWindow; /** * @brief Provides an input field for filtering the currently shown items. @@ -40,7 +39,10 @@ class FilterBar : public QWidget public: FilterBar(QWidget* parent = 0); virtual ~FilterBar(); - + + /** Clears the input field. */ + void clear(); + signals: /** * Signal that reports the name filter has been @@ -51,16 +53,12 @@ signals: /** * 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;