]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/filterbar/filterbar.h
SVN_SILENT made messages (.desktop file) - always resolve ours
[dolphin.git] / src / filterbar / filterbar.h
index 3530558839c0284e8f8cfa67f9e12e0ff9608b5e..1424f4cb81211d7c461d954c063767f254b4db5d 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef FILTERBAR_H
 #define FILTERBAR_H
 
-#include <QWidget>
+#include "animatedheightwidget.h"
 
 class QLineEdit;
 class QToolButton;
@@ -19,7 +19,7 @@ class QToolButton;
  *
  * @author Gregor Kališnik <gregor@podnapisi.net>
  */
-class FilterBar : public QWidget
+class FilterBar : public AnimatedHeightWidget
 {
     Q_OBJECT
 
@@ -64,6 +64,9 @@ protected:
     void showEvent(QShowEvent *event) override;
     void keyPressEvent(QKeyEvent *event) override;
 
+    /** @see AnimatedHeightWidget::preferredHeight() */
+    int preferredHeight() const override;
+
 private:
     QLineEdit *m_filterInput;
     QToolButton *m_lockButton;