Commit 6b27866d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement filter save manager

parent ef055878
Pipeline #63102 passed with stage
in 39 minutes and 21 seconds
......@@ -43,3 +43,9 @@ void FilterSavedManager::loadMenu(QMenu *menu)
});
}
}
QVector<FilterSavedManager::FilterInfo> FilterSavedManager::filterInfos() const
{
// TODO
return {};
}
......@@ -16,11 +16,16 @@ class FilterSavedManager : public QObject
{
Q_OBJECT
public:
struct FilterInfo {
QString filterName;
QString identifier;
};
explicit FilterSavedManager(QObject *parent = nullptr);
~FilterSavedManager() override;
void saveFilter(MessageList::Core::Filter *filter, const QString &filtername);
void loadMenu(QMenu *menu);
Q_REQUIRED_RESULT QVector<FilterInfo> filterInfos() const;
static FilterSavedManager *self();
......@@ -29,3 +34,4 @@ Q_SIGNALS:
};
}
}
Q_DECLARE_TYPEINFO(MessageList::Core::FilterSavedManager::FilterInfo, Q_MOVABLE_TYPE);
......@@ -5,6 +5,7 @@
*/
#include "configurefilterswidget.h"
#include "core/filtersavedmanager.h"
#include <QListWidget>
#include <QVBoxLayout>
using namespace MessageList::Core;
......@@ -17,8 +18,14 @@ ConfigureFiltersWidget::ConfigureFiltersWidget(QWidget *parent)
mainLayout->setContentsMargins({});
mListFiltersWidget->setObjectName(QStringLiteral("mListFiltersWidget"));
mainLayout->addWidget(mListFiltersWidget);
init();
}
ConfigureFiltersWidget::~ConfigureFiltersWidget()
{
}
void ConfigureFiltersWidget::init()
{
// TODO load filter
}
......@@ -21,8 +21,8 @@ public:
~ConfigureFiltersWidget() override;
private:
void init();
QListWidget *const mListFiltersWidget;
};
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment