aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.h
blob: 80629f0cc6a95978afbabd78fc16e291fd82ce01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef FILTERWIDGET_2_H
#define FILTERWIDGET_2_H

#include <QWidget>
#include <QHideEvent>
#include <QShowEvent>

#include <memory>

#include "ui_filterwidget2.h"
#include "qt-models/filtermodels.h"

namespace Ui {
	class FilterWidget2;
}

class FilterWidget2 : public QWidget {
	Q_OBJECT

public:
	explicit FilterWidget2(QWidget *parent = 0);
	void updateFilter();
protected:
	void hideEvent(QHideEvent *event) override;
	void showEvent(QShowEvent *event) override;

signals:
	void filterDataChanged(const FilterData& data);

private:
	std::unique_ptr<Ui::FilterWidget2> ui;
	FilterData filterData;
};

#endif