File indexing completed on 2024-05-12 05:20:13

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "refreshsettingsfirstpage.h"
0008 #include <KLocalizedString>
0009 #include <QHBoxLayout>
0010 #include <QLabel>
0011 
0012 RefreshSettingsFirstPage::RefreshSettingsFirstPage(QWidget *parent)
0013     : QWidget(parent)
0014 {
0015     auto mainLayout = new QHBoxLayout(this);
0016     mainLayout->setObjectName(QLatin1StringView("mainLayout"));
0017     mainLayout->setContentsMargins({});
0018     auto label = new QLabel(i18n("Please close KMail/Kontact before using it."));
0019     QFont f = label->font();
0020     f.setBold(true);
0021     f.setPixelSize(22);
0022     label->setFont(f);
0023     label->setObjectName(QLatin1StringView("label"));
0024     mainLayout->addWidget(label, 0, Qt::AlignHCenter);
0025 }
0026 
0027 RefreshSettingsFirstPage::~RefreshSettingsFirstPage() = default;
0028 
0029 #include "moc_refreshsettingsfirstpage.cpp"