X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d7d4fb9d26773c2d729b49d71af10e1378381ff3..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/filterbar.h diff --git a/src/filterbar.h b/src/filterbar.h index 503938fc0..db5d49f89 100644 --- a/src/filterbar.h +++ b/src/filterbar.h @@ -20,24 +20,24 @@ #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. * * @author Gregor Kališnik + * @author Peter Penz */ class FilterBar : public QWidget { Q_OBJECT public: - FilterBar(DolphinMainWindow* mainWindow, QWidget *parent = 0, const char *name = 0); + FilterBar(QWidget* parent = 0); virtual ~FilterBar(); signals: @@ -45,15 +45,22 @@ signals: * Signal that reports the name filter has been * changed to \a nameFilter. */ - void signalFilterChanged(const QString& nameFilter); + void filterChanged(const QString& nameFilter); + + /** + * Emitted as soon as the filterbar should get closed. + */ + void closeRequest(); protected: virtual void hideEvent(QHideEvent* event); virtual void showEvent(QShowEvent* event); virtual void keyReleaseEvent(QKeyEvent* event); +private slots: + void emitCloseRequest(); + private: - DolphinMainWindow *m_mainWindow; QLabel* m_filter; KLineEdit* m_filterInput; QToolButton* m_close;