2018-10-13 09:52:08 +00:00
|
|
|
#ifndef FILTERWIDGET_2_H
|
|
|
|
#define FILTERWIDGET_2_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2018-11-16 14:24:11 +00:00
|
|
|
#include <QHideEvent>
|
|
|
|
#include <QShowEvent>
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "ui_filterwidget2.h"
|
2018-12-06 19:07:47 +00:00
|
|
|
#include "qt-models/filtermodels.h"
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class FilterWidget2;
|
|
|
|
}
|
|
|
|
|
|
|
|
class FilterWidget2 : public QWidget {
|
|
|
|
Q_OBJECT
|
2018-12-06 19:07:47 +00:00
|
|
|
|
2018-10-13 09:52:08 +00:00
|
|
|
public:
|
|
|
|
explicit FilterWidget2(QWidget *parent = 0);
|
|
|
|
void updateFilter();
|
2018-11-16 14:24:11 +00:00
|
|
|
protected:
|
|
|
|
void hideEvent(QHideEvent *event) override;
|
|
|
|
void showEvent(QShowEvent *event) override;
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
signals:
|
2018-12-06 19:07:47 +00:00
|
|
|
void filterDataChanged(const FilterData& data);
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::FilterWidget2> ui;
|
2018-11-16 14:24:11 +00:00
|
|
|
FilterData filterData;
|
2018-10-13 09:52:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|