#ifndef FILTERBAR_H
#define FILTERBAR_H
-#include <QWidget>
+#include "animatedheightwidget.h"
class QLineEdit;
class QToolButton;
*
* @author Gregor Kališnik <gregor@podnapisi.net>
*/
-class FilterBar : public QWidget
+class FilterBar : public AnimatedHeightWidget
{
Q_OBJECT
void showEvent(QShowEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
+ /** @see AnimatedHeightWidget::preferredHeight() */
+ int preferredHeight() const override;
+
private:
QLineEdit *m_filterInput;
QToolButton *m_lockButton;