File indexing completed on 2025-01-19 04:46:43
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "confirmaddressconfiguredialog.h" 0008 #include "confirmaddressconfigurewidget.h" 0009 #include <KLocalizedString> 0010 0011 ConfirmAddressConfigureDialog::ConfirmAddressConfigureDialog(QWidget *parent) 0012 : PimCommon::ConfigurePluginDialog(parent) 0013 { 0014 setWindowTitle(i18nc("@title:window", "Configure \"Confirm Email Address\" Plugin")); 0015 initLayout(); 0016 } 0017 0018 ConfirmAddressConfigureDialog::~ConfirmAddressConfigureDialog() = default; 0019 0020 QWidget *ConfirmAddressConfigureDialog::createLayout() 0021 { 0022 mConfigureWidget = new ConfirmAddressConfigureWidget(this); 0023 return mConfigureWidget; 0024 } 0025 0026 void ConfirmAddressConfigureDialog::save() 0027 { 0028 mConfigureWidget->saveSettings(); 0029 } 0030 0031 void ConfirmAddressConfigureDialog::load() 0032 { 0033 mConfigureWidget->loadSettings(); 0034 } 0035 0036 void ConfirmAddressConfigureDialog::reset() 0037 { 0038 mConfigureWidget->resetSettings(); 0039 } 0040 0041 void ConfirmAddressConfigureDialog::help() 0042 { 0043 showHelp(QStringLiteral("kmail2"), mConfigureWidget->helpAnchor()); 0044 } 0045 0046 #include "moc_confirmaddressconfiguredialog.cpp"