Commit fdfe5bd7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to implement configurefiltersdialog

parent 6488be32
Pipeline #61967 passed with stage
in 39 minutes and 38 seconds
......@@ -33,6 +33,8 @@ set(libmessagelist_SRCS
core/widgets/searchcollectionindexingwarning.cpp
core/widgets/tablockedwarning.cpp
core/widgets/filtersavedmenu.cpp
core/widgets/configurefiltersdialog.cpp
core/widgets/configurefilterswidget.cpp
utils/aggregationcombobox.cpp
......
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "configurefiltersdialog.h"
#include "configurefilterswidget.h"
#include <QDialogButtonBox>
#include <QVBoxLayout>
using namespace MessageList::Core;
ConfigureFiltersDialog::ConfigureFiltersDialog(QWidget *parent)
: QDialog(parent)
, mConfigureFiltersWidget(new ConfigureFiltersWidget(this))
{
}
ConfigureFiltersDialog::~ConfigureFiltersDialog()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "messagelist_private_export.h"
#include <QDialog>
namespace MessageList
{
namespace Core
{
class ConfigureFiltersWidget;
class MESSAGELIST_TESTS_EXPORT ConfigureFiltersDialog : public QDialog
{
Q_OBJECT
public:
explicit ConfigureFiltersDialog(QWidget *parent = nullptr);
~ConfigureFiltersDialog() override;
private:
ConfigureFiltersWidget *const mConfigureFiltersWidget;
};
}
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "configurefilterswidget.h"
#include <QVBoxLayout>
using namespace MessageList::Core;
ConfigureFiltersWidget::ConfigureFiltersWidget(QWidget *parent)
: QWidget(parent)
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
}
ConfigureFiltersWidget::~ConfigureFiltersWidget()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "messagelist_private_export.h"
#include <QWidget>
namespace MessageList
{
namespace Core
{
class MESSAGELIST_TESTS_EXPORT ConfigureFiltersWidget : public QWidget
{
Q_OBJECT
public:
explicit ConfigureFiltersWidget(QWidget *parent = nullptr);
~ConfigureFiltersWidget() override;
};
}
}
......@@ -121,6 +121,7 @@ void SearchLineStatus::initializeActions()
void SearchLineStatus::slotConfigureFilters()
{
// TODO
}
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