Commit 87fd69aa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more settings

parent 0ca34b51
Pipeline #28234 failed with stage
in 68 minutes and 57 seconds
......@@ -5,6 +5,7 @@ set(messageviewer_folderconfiguresettingsplugin_SRCS
foldersettingfilterproxymodel.cpp
folderconfiguretreewidget.cpp
folderconfiguresettingspagewidget.cpp
folderconfiguresettingsgeneralwidget.cpp
)
kcoreaddons_add_plugin(messageviewer_folderconfiguresettingsplugin JSON messageviewer_folderconfiguresettingsplugin.json SOURCES
......
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "folderconfiguresettingsgeneralwidget.h"
FolderConfigureSettingsGeneralWidget::FolderConfigureSettingsGeneralWidget(QWidget *parent)
: QWidget(parent)
{
}
FolderConfigureSettingsGeneralWidget::~FolderConfigureSettingsGeneralWidget()
{
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef FOLDERCONFIGURESETTINGSGENERALWIDGET_H
#define FOLDERCONFIGURESETTINGSGENERALWIDGET_H
#include <QWidget>
class FolderConfigureSettingsGeneralWidget : public QWidget
{
Q_OBJECT
public:
explicit FolderConfigureSettingsGeneralWidget(QWidget *parent = nullptr);
~FolderConfigureSettingsGeneralWidget();
};
#endif // FOLDERCONFIGURESETTINGSGENERALWIDGET_H
......@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
#include "folderconfiguresettingsgeneralwidget.h"
#include "folderconfiguresettingspagewidget.h"
#include <MailCommon/CollectionExpiryWidget>
#include <KLocalizedString>
......@@ -34,11 +35,13 @@ FolderConfigureSettingsPageWidget::FolderConfigureSettingsPageWidget(QWidget *pa
tab->setObjectName(QStringLiteral("tab"));
mainLayout->addWidget(tab);
mFolderConfigureSettingsGeneralWidget = new FolderConfigureSettingsGeneralWidget(this);
mFolderConfigureSettingsGeneralWidget->setObjectName(QStringLiteral("mFolderConfigureSettingsGeneralWidget"));
tab->addTab(mFolderConfigureSettingsGeneralWidget, i18n("General"));
mCollectionExpiryWidget = new MailCommon::CollectionExpiryWidget(this);
mCollectionExpiryWidget->setObjectName(QStringLiteral("mCollectionExpiryWidget"));
tab->addTab(mCollectionExpiryWidget, i18n("Expiry"));
//configure expire folder
//Preference mail
//General
......
......@@ -24,6 +24,7 @@
namespace MailCommon {
class CollectionExpiryWidget;
}
class FolderConfigureSettingsGeneralWidget;
class FolderConfigureSettingsPageWidget : public QWidget
{
Q_OBJECT
......@@ -34,6 +35,7 @@ public:
void save();
private:
MailCommon::CollectionExpiryWidget *mCollectionExpiryWidget = nullptr;
FolderConfigureSettingsGeneralWidget *mFolderConfigureSettingsGeneralWidget = nullptr;
};
#endif // FOLDERCONFIGURESETTINGSPAGEWIDGET_H
......@@ -46,6 +46,7 @@ FolderConfigureSettingsWidget::FolderConfigureSettingsWidget(QWidget *parent)
mFolderConfigureSettingsPageWidget->setObjectName(QStringLiteral("mFolderConfigureSettingsPageWidget"));
splitter->addWidget(mFolderConfigureSettingsPageWidget);
}
FolderConfigureSettingsWidget::~FolderConfigureSettingsWidget()
......
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