File indexing completed on 2025-01-05 04:49:41
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "gravatarconfiguresettingsplugindialog.h" 0008 #include "gravatarconfiguresettingspluginwidget.h" 0009 #include <KLocalizedString> 0010 0011 GravatarConfigureSettingsPluginDialog::GravatarConfigureSettingsPluginDialog(QWidget *parent) 0012 : PimCommon::ConfigurePluginDialog(parent) 0013 { 0014 setWindowTitle(i18nc("@title:window", "Configure Gravatar")); 0015 initLayout(true); 0016 } 0017 0018 GravatarConfigureSettingsPluginDialog::~GravatarConfigureSettingsPluginDialog() = default; 0019 0020 QWidget *GravatarConfigureSettingsPluginDialog::createLayout() 0021 { 0022 mWidget = new GravatarConfigureSettingsPluginWidget(this); 0023 return mWidget; 0024 } 0025 0026 void GravatarConfigureSettingsPluginDialog::save() 0027 { 0028 mWidget->saveSettings(); 0029 } 0030 0031 void GravatarConfigureSettingsPluginDialog::load() 0032 { 0033 mWidget->loadSettings(); 0034 } 0035 0036 void GravatarConfigureSettingsPluginDialog::reset() 0037 { 0038 mWidget->resetSettings(); 0039 } 0040 0041 #include "moc_gravatarconfiguresettingsplugindialog.cpp"