mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
89413c5f07
commit
81bb6086c0
4 changed files with 63 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue