From 81bb6086c0e7f7ba6d4100a49cc9cf32556caaaf Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 6 Dec 2018 20:07:47 +0100 Subject: Struct FilterData The idea is that this struct will have all the needed data that will be passed to the filter model. Everything that happens on the filterwidget will fill out this struct, then forward it to the model, that in turn will activate the filter hiding some of the dives that matches on your divelist. Signed-off-by: Tomaz Canabrava --- desktop-widgets/filterwidget2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/filterwidget2.h') diff --git a/desktop-widgets/filterwidget2.h b/desktop-widgets/filterwidget2.h index 70313c5d2..a9d976ec8 100644 --- a/desktop-widgets/filterwidget2.h +++ b/desktop-widgets/filterwidget2.h @@ -6,6 +6,7 @@ #include #include "ui_filterwidget2.h" +#include "qt-models/filtermodels.h" namespace Ui { class FilterWidget2; @@ -13,12 +14,13 @@ namespace Ui { class FilterWidget2 : public QWidget { Q_OBJECT + public: explicit FilterWidget2(QWidget *parent = 0); void updateFilter(); signals: - void filterUpdated(); + void filterDataChanged(const FilterData& data); private: std::unique_ptr ui; -- cgit v1.2.3-70-g09d2