X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/5252c12db4929886dbe502013e0a1fee6500f568..abf17941f7:/src/filterbar.h diff --git a/src/filterbar.h b/src/filterbar.h index 5f5ca9dc1..2dd02d28d 100644 --- a/src/filterbar.h +++ b/src/filterbar.h @@ -15,54 +15,56 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #ifndef FILTERBAR_H #define FILTERBAR_H -#include -//Added by qt3to4: -#include -#include +#include class QLabel; +class QToolButton; class KLineEdit; -class KPushButton; +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(QWidget *parent = 0, const char *name = 0); + FilterBar(QWidget* parent = 0); virtual ~FilterBar(); signals: /** - * Signal that reports the name filter has been - * changed to \a nameFilter. - */ - void signalFilterChanged(const QString& nameFilter); + * Signal that reports the name filter has been + * changed to \a nameFilter. + */ + void filterChanged(const QString& nameFilter); -public slots: - /** @see QWidget::hide() */ - virtual void hide(); - - /** @see QWidget::show() */ - virtual void show(); + /** + * 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: QLabel* m_filter; KLineEdit* m_filterInput; - KPushButton* m_close; + QToolButton* m_close; }; #endif