summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2018-12-06 20:07:47 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-14 01:05:18 +0800
commit81bb6086c0e7f7ba6d4100a49cc9cf32556caaaf (patch)
tree478e59d052d3fddd564c7bbabbd44d8544b276ca /desktop-widgets/filterwidget2.h
parent89413c5f0779813dab1b63e24aa4b34aebc1e28c (diff)
downloadsubsurface-81bb6086c0e7f7ba6d4100a49cc9cf32556caaaf.tar.gz
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 <tcanabrava@kde.org>
Diffstat (limited to 'desktop-widgets/filterwidget2.h')
-rw-r--r--desktop-widgets/filterwidget2.h4
1 files changed, 3 insertions, 1 deletions
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 <memory>
#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::FilterWidget2> ui;