summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2018-10-13 11:52:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-14 01:05:18 +0800
commit19f6e8810cdaedcbecd87aa762c75e59bebe26c9 (patch)
treecae987dfcd04090530375d5ec9bb98d174d1b128 /desktop-widgets/filterwidget2.h
parentc64c9c923b1f2a4758f3ff639c28790f99c9ce84 (diff)
downloadsubsurface-19f6e8810cdaedcbecd87aa762c75e59bebe26c9.tar.gz
Start to implement a simplified version of the filter widget
The idea of this new widget is to be able to filter more types of data, while keeping it simple and extending the feature set to something that was impossible with the old implementation. While the old implementation had 4 panels that you could use to filter specific tags / people / types of dives the new one will let you filter by visibility, temperature people, name, equipment, etc, in a more natural way than the old one. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'desktop-widgets/filterwidget2.h')
-rw-r--r--desktop-widgets/filterwidget2.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget2.h b/desktop-widgets/filterwidget2.h
new file mode 100644
index 000000000..70313c5d2
--- /dev/null
+++ b/desktop-widgets/filterwidget2.h
@@ -0,0 +1,27 @@
+#ifndef FILTERWIDGET_2_H
+#define FILTERWIDGET_2_H
+
+#include <QWidget>
+
+#include <memory>
+
+#include "ui_filterwidget2.h"
+
+namespace Ui {
+ class FilterWidget2;
+}
+
+class FilterWidget2 : public QWidget {
+ Q_OBJECT
+public:
+ explicit FilterWidget2(QWidget *parent = 0);
+ void updateFilter();
+
+signals:
+ void filterUpdated();
+
+private:
+ std::unique_ptr<Ui::FilterWidget2> ui;
+};
+
+#endif