File indexing completed on 2024-05-19 05:19:20

0001 /*
0002     This file is part of KJots.
0003 
0004     SPDX-FileCopyrightText: 2009 Montel Laurent <montel@kde.org>
0005                   2020 Igor Poboiko <igor.poboiko@gmail.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #include "kjotsconfigdlg.h"
0011 #include "KJotsSettings.h"
0012 #include <QPushButton>
0013 
0014 #if KCMUTILS_VERSION < QT_VERSION_CHECK(5, 240, 0)
0015 KJotsConfigMisc::KJotsConfigMisc(QWidget *parent, const QVariantList &args)
0016     : KCModule(parent, args)
0017 #else
0018 KJotsConfigMisc::KJotsConfigMisc(QObject *parent, const KPluginMetaData &data)
0019     : KCModule(parent, data)
0020 #endif
0021       ,
0022       ui(new Ui::confPageMisc) {
0023 #if KCMUTILS_VERSION < QT_VERSION_CHECK(5, 240, 0)
0024   auto lay = new QHBoxLayout(this);
0025   auto miscPage = new QWidget(this);
0026 #else
0027   auto lay = new QHBoxLayout(widget());
0028   auto miscPage = new QWidget(widget());
0029 #endif
0030   ui->setupUi(miscPage);
0031   lay->addWidget(miscPage);
0032   addConfig(KJotsSettings::self(), miscPage);
0033   load();
0034 }
0035 
0036 #include "moc_kjotsconfigdlg.cpp"