File indexing completed on 2024-11-10 04:57:09
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2017, 2018 Vlad Zahorodnii <vlad.zahorodnii@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 #include "slide_config.h" 0010 0011 #include <config-kwin.h> 0012 0013 // KConfigSkeleton 0014 #include "slideconfig.h" 0015 0016 #include <kwineffects_interface.h> 0017 0018 #include <KPluginFactory> 0019 0020 K_PLUGIN_CLASS(KWin::SlideEffectConfig) 0021 0022 namespace KWin 0023 { 0024 0025 SlideEffectConfig::SlideEffectConfig(QObject *parent, const KPluginMetaData &data) 0026 : KCModule(parent, data) 0027 { 0028 m_ui.setupUi(widget()); 0029 SlideConfig::instance(KWIN_CONFIG); 0030 addConfig(SlideConfig::self(), widget()); 0031 } 0032 0033 SlideEffectConfig::~SlideEffectConfig() 0034 { 0035 } 0036 0037 void SlideEffectConfig::save() 0038 { 0039 KCModule::save(); 0040 0041 OrgKdeKwinEffectsInterface interface(QStringLiteral("org.kde.KWin"), 0042 QStringLiteral("/Effects"), 0043 QDBusConnection::sessionBus()); 0044 interface.reconfigureEffect(QStringLiteral("slide")); 0045 } 0046 0047 } // namespace KWin 0048 0049 #include "slide_config.moc" 0050 0051 #include "moc_slide_config.cpp"