Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur_config.cpp
Property | Old Value | New Value |
---|---|---|
File Mode | 100644 | 100755 |
Show All 19 Lines | |||||
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 | #include <config-kwin.h> | ||
24 | 24 | | |||
25 | #include <kwineffects_interface.h> | 25 | #include <kwineffects_interface.h> | ||
26 | #include <KAboutData> | 26 | #include <KAboutData> | ||
27 | #include <KPluginFactory> | 27 | #include <KPluginFactory> | ||
28 | #include <KWindowSystem> | | |||
29 | 28 | | |||
30 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | 29 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | ||
31 | "blur_config.json", | 30 | "blur_config.json", | ||
32 | registerPlugin<KWin::BlurEffectConfig>();) | 31 | registerPlugin<KWin::BlurEffectConfig>();) | ||
33 | 32 | | |||
34 | namespace KWin | 33 | namespace KWin | ||
35 | { | 34 | { | ||
36 | 35 | | |||
37 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | 36 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | ||
38 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | 37 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | ||
39 | { | 38 | { | ||
40 | ui.setupUi(this); | 39 | ui.setupUi(this); | ||
41 | if (KWindowSystem::isPlatformWayland()) { | | |||
42 | ui.kcfg_CacheTexture->setVisible(false); | | |||
43 | } | | |||
44 | BlurConfig::instance(KWIN_CONFIG); | 40 | BlurConfig::instance(KWIN_CONFIG); | ||
45 | addConfig(BlurConfig::self(), this); | 41 | addConfig(BlurConfig::self(), this); | ||
46 | 42 | | |||
47 | load(); | 43 | load(); | ||
48 | } | 44 | } | ||
49 | 45 | | |||
50 | BlurEffectConfig::~BlurEffectConfig() | 46 | BlurEffectConfig::~BlurEffectConfig() | ||
51 | { | 47 | { | ||
Show All 15 Lines |