File indexing completed on 2024-11-10 04:56:53
0001 /* 0002 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kcmkwinxwayland.h" 0008 0009 #include <KConfigGroup> 0010 #include <KDesktopFile> 0011 #include <KLocalizedString> 0012 #include <KPluginFactory> 0013 #include <QKeySequence> 0014 0015 #include <kwinxwaylanddata.h> 0016 0017 K_PLUGIN_FACTORY_WITH_JSON(KcmXwaylandFactory, "kcm_kwinxwayland.json", registerPlugin<KcmXwayland>(); registerPlugin<KWinXwaylandData>();) 0018 0019 KcmXwayland::KcmXwayland(QObject *parent, const KPluginMetaData &metaData) 0020 : KQuickManagedConfigModule(parent, metaData) 0021 , m_data(new KWinXwaylandData(this)) 0022 , m_settings(new KWinXwaylandSettings(m_data)) 0023 { 0024 registerSettings(m_settings); 0025 qmlRegisterAnonymousType<KWinXwaylandSettings>("org.kde.kwin.kwinxwaylandsettings", 1); 0026 } 0027 0028 KcmXwayland::~KcmXwayland() = default; 0029 0030 #include "kcmkwinxwayland.moc" 0031 0032 #include "moc_kcmkwinxwayland.cpp"