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