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 "folderconfiguresettingsgeneralwidget.h" 0008 #include <MailCommon/CollectionGeneralWidget> 0009 #include <QHBoxLayout> 0010 0011 FolderConfigureSettingsGeneralWidget::FolderConfigureSettingsGeneralWidget(QWidget *parent) 0012 : FolderConfigureSettingsPageBase(parent) 0013 , mCollectionGeneralWidget(new MailCommon::CollectionGeneralWidget(this)) 0014 { 0015 auto mainWidget = new QWidget(this); 0016 auto mainLayout = new QHBoxLayout(mainWidget); 0017 mCollectionGeneralWidget->setObjectName(QLatin1StringView("mCollectionGeneralWidget")); 0018 mainLayout->addWidget(mCollectionGeneralWidget); 0019 addMainWidget(mainWidget); 0020 mMainLayout->addStretch(); 0021 } 0022 0023 FolderConfigureSettingsGeneralWidget::~FolderConfigureSettingsGeneralWidget() = default; 0024 0025 void FolderConfigureSettingsGeneralWidget::save(Akonadi::Collection &col) 0026 { 0027 if (wasModified()) { 0028 mCollectionGeneralWidget->save(col); 0029 } 0030 } 0031 0032 #include "moc_folderconfiguresettingsgeneralwidget.cpp"