Commit b5637981 authored by Laurent Montel's avatar Laurent Montel 😁

Prepare to add template support

parent 2b3c665c
Pipeline #35064 canceled with stage
......@@ -6,6 +6,7 @@ set(folderconfiguresettings_SRCS
folderconfiguretreewidget.cpp
folderconfiguresettingspagewidget.cpp
folderconfiguresettingsgeneralwidget.cpp
folderconfiguresettingstemplatewidget.cpp
)
ecm_qt_declare_logging_category(folderconfiguresettings_SRCS HEADER libfolderconfiguresettings_debug.h IDENTIFIER LIBFOLDERCONFIGURESETTINGS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libfolderconfiguresettingsplugin
......
......@@ -6,6 +6,7 @@
#include "folderconfiguresettingsgeneralwidget.h"
#include "folderconfiguresettingspagewidget.h"
#include "folderconfiguresettingstemplatewidget.h"
#include <MailCommon/CollectionExpiryWidget>
#include <KLocalizedString>
#include <QTabWidget>
......@@ -31,6 +32,11 @@ FolderConfigureSettingsPageWidget::FolderConfigureSettingsPageWidget(QWidget *pa
mCollectionExpiryWidget = new MailCommon::CollectionExpiryWidget(this);
mCollectionExpiryWidget->setObjectName(QStringLiteral("mCollectionExpiryWidget"));
tab->addTab(mCollectionExpiryWidget, i18n("Expiry"));
//Template
mCollectionTemplateWidget = new FolderConfigureSettingsTemplateWidget(this);
mCollectionTemplateWidget->setObjectName(QStringLiteral("mCollectionTemplateWidget"));
tab->addTab(mCollectionTemplateWidget, i18n("Template"));
}
FolderConfigureSettingsPageWidget::~FolderConfigureSettingsPageWidget()
......
......@@ -15,6 +15,7 @@ namespace MailCommon {
class CollectionExpiryWidget;
}
class FolderConfigureSettingsGeneralWidget;
class FolderConfigureSettingsTemplateWidget;
class LIBFOLDERCONFIGURESETTINGS_TESTS_EXPORT FolderConfigureSettingsPageWidget : public QWidget
{
Q_OBJECT
......@@ -26,6 +27,7 @@ public:
private:
MailCommon::CollectionExpiryWidget *mCollectionExpiryWidget = nullptr;
FolderConfigureSettingsGeneralWidget *mFolderConfigureSettingsGeneralWidget = nullptr;
FolderConfigureSettingsTemplateWidget *mCollectionTemplateWidget = nullptr;
};
#endif // FOLDERCONFIGURESETTINGSPAGEWIDGET_H
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "folderconfiguresettingstemplatewidget.h"
#include <QVBoxLayout>
FolderConfigureSettingsTemplateWidget::FolderConfigureSettingsTemplateWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mainLayout->setContentsMargins(0, 0, 0, 0);
}
FolderConfigureSettingsTemplateWidget::~FolderConfigureSettingsTemplateWidget()
{
}
/*
SPDX-FileCopyrightText: 2020 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef FOLDERCONFIGURESETTINGSTEMPLATEWIDGET_H
#define FOLDERCONFIGURESETTINGSTEMPLATEWIDGET_H
#include <QWidget>
class FolderConfigureSettingsTemplateWidget : public QWidget
{
Q_OBJECT
public:
explicit FolderConfigureSettingsTemplateWidget(QWidget *parent = nullptr);
~FolderConfigureSettingsTemplateWidget();
};
#endif // FOLDERCONFIGURESETTINGSTEMPLATEWIDGET_H
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