File indexing completed on 2025-01-19 04:46:52

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "folderconfiguresettingstemplatewidget.h"
0008 #include <MailCommon/CollectionTemplatesWidget>
0009 
0010 FolderConfigureSettingsTemplateWidget::FolderConfigureSettingsTemplateWidget(QWidget *parent)
0011     : FolderConfigureSettingsPageBase(parent)
0012     , mCollectionTemplateWidget(new MailCommon::CollectionTemplatesWidget(this))
0013 {
0014     mCollectionTemplateWidget->setObjectName(QLatin1StringView("mCollectionTemplateWidget"));
0015     addMainWidget(mCollectionTemplateWidget);
0016 }
0017 
0018 FolderConfigureSettingsTemplateWidget::~FolderConfigureSettingsTemplateWidget() = default;
0019 
0020 void FolderConfigureSettingsTemplateWidget::save(Akonadi::Collection &col)
0021 {
0022     if (wasModified()) {
0023         mCollectionTemplateWidget->save(col);
0024     }
0025 }
0026 
0027 #include "moc_folderconfiguresettingstemplatewidget.cpp"