┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/filterbar/filterbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filterbar/filterbar.h')
-rw-r--r--src/filterbar/filterbar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/filterbar/filterbar.h b/src/filterbar/filterbar.h
index 353055883..1424f4cb8 100644
--- a/src/filterbar/filterbar.h
+++ b/src/filterbar/filterbar.h
@@ -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 <[email protected]>
*/
-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;