Commit 8c89a6f0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show configure filters dialog

parent 20cb2be4
Pipeline #62448 passed with stage
in 40 minutes and 29 seconds
...@@ -14,6 +14,7 @@ ConfigureFiltersWidget::ConfigureFiltersWidget(QWidget *parent) ...@@ -14,6 +14,7 @@ ConfigureFiltersWidget::ConfigureFiltersWidget(QWidget *parent)
{ {
auto mainLayout = new QVBoxLayout(this); auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout")); mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins({});
mListFiltersWidget->setObjectName(QStringLiteral("mListFiltersWidget")); mListFiltersWidget->setObjectName(QStringLiteral("mListFiltersWidget"));
mainLayout->addWidget(mListFiltersWidget); mainLayout->addWidget(mListFiltersWidget);
} }
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include "searchlinestatus.h" #include "searchlinestatus.h"
#include "configurefiltersdialog.h"
#include "filtersavedmenu.h" #include "filtersavedmenu.h"
#include "messagelist_debug.h" #include "messagelist_debug.h"
...@@ -18,6 +19,7 @@ ...@@ -18,6 +19,7 @@
#include <QContextMenuEvent> #include <QContextMenuEvent>
#include <QInputDialog> #include <QInputDialog>
#include <QMenu> #include <QMenu>
#include <QPointer>
#include <QPushButton> #include <QPushButton>
#include <QStandardPaths> #include <QStandardPaths>
#include <QStringListModel> #include <QStringListModel>
...@@ -116,12 +118,16 @@ void SearchLineStatus::initializeActions() ...@@ -116,12 +118,16 @@ void SearchLineStatus::initializeActions()
mSaveFilterAction->setMenu(mFilterSavedMenu); mSaveFilterAction->setMenu(mFilterSavedMenu);
connect(mSaveFilterAction, &QAction::triggered, this, &SearchLineStatus::showSavedFiltersMenu); connect(mSaveFilterAction, &QAction::triggered, this, &SearchLineStatus::showSavedFiltersMenu);
connect(mFilterSavedMenu, &FilterSavedMenu::saveFilter, this, &SearchLineStatus::slotSaveFilter); connect(mFilterSavedMenu, &FilterSavedMenu::saveFilter, this, &SearchLineStatus::slotSaveFilter);
connect(mFilterSavedMenu, &FilterSavedMenu::saveFilter, this, &SearchLineStatus::slotConfigureFilters); connect(mFilterSavedMenu, &FilterSavedMenu::configureFilters, this, &SearchLineStatus::slotConfigureFilters);
} }
void SearchLineStatus::slotConfigureFilters() void SearchLineStatus::slotConfigureFilters()
{ {
// TODO QPointer<ConfigureFiltersDialog> dlg = new ConfigureFiltersDialog(this);
if (dlg->exec()) {
// TODO
}
delete dlg;
} }
void SearchLineStatus::slotSaveFilter() void SearchLineStatus::slotSaveFilter()
......
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