Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur_config.cpp
Show All 14 Lines | |||||
15 | * along with this program; see the file COPYING. if not, write to | 15 | * along with this program; see the file COPYING. if not, write to | ||
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "blur_config.h" | 20 | #include "blur_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "blurconfig.h" | 22 | #include "blurconfig.h" | ||
23 | #include <config-kwin.h> | ||||
23 | 24 | | |||
24 | #include <kwineffects_interface.h> | 25 | #include <kwineffects_interface.h> | ||
25 | #include <KAboutData> | 26 | #include <KAboutData> | ||
26 | #include <KPluginFactory> | 27 | #include <KPluginFactory> | ||
27 | 28 | | |||
28 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | 29 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | ||
29 | "blur_config.json", | 30 | "blur_config.json", | ||
30 | registerPlugin<KWin::BlurEffectConfig>();) | 31 | registerPlugin<KWin::BlurEffectConfig>();) | ||
31 | 32 | | |||
32 | namespace KWin | 33 | namespace KWin | ||
33 | { | 34 | { | ||
34 | 35 | | |||
35 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | 36 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | ||
36 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | 37 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | ||
37 | { | 38 | { | ||
38 | ui.setupUi(this); | 39 | ui.setupUi(this); | ||
40 | BlurConfig::instance(KWIN_CONFIG); | ||||
39 | addConfig(BlurConfig::self(), this); | 41 | addConfig(BlurConfig::self(), this); | ||
40 | 42 | | |||
41 | load(); | 43 | load(); | ||
42 | } | 44 | } | ||
43 | 45 | | |||
44 | BlurEffectConfig::~BlurEffectConfig() | 46 | BlurEffectConfig::~BlurEffectConfig() | ||
45 | { | 47 | { | ||
46 | } | 48 | } | ||
Show All 14 Lines |