Changeset View
Changeset View
Standalone View
Standalone View
effects/blur/blur_config.cpp
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> | ||||
28 | 29 | | |||
29 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | 30 | K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, | ||
30 | "blur_config.json", | 31 | "blur_config.json", | ||
31 | registerPlugin<KWin::BlurEffectConfig>();) | 32 | registerPlugin<KWin::BlurEffectConfig>();) | ||
32 | 33 | | |||
33 | namespace KWin | 34 | namespace KWin | ||
34 | { | 35 | { | ||
35 | 36 | | |||
36 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | 37 | BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) | ||
37 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | 38 | : KCModule(KAboutData::pluginData(QStringLiteral("blur")), parent, args) | ||
38 | { | 39 | { | ||
39 | ui.setupUi(this); | 40 | ui.setupUi(this); | ||
41 | if (KWindowSystem::isPlatformWayland()) { | ||||
42 | ui.kcfg_CacheTexture->setVisible(false); | ||||
broulik: Shouldn't it hide or at least disable the check box? | |||||
43 | } | ||||
40 | BlurConfig::instance(KWIN_CONFIG); | 44 | BlurConfig::instance(KWIN_CONFIG); | ||
41 | addConfig(BlurConfig::self(), this); | 45 | addConfig(BlurConfig::self(), this); | ||
42 | 46 | | |||
43 | load(); | 47 | load(); | ||
44 | } | 48 | } | ||
45 | 49 | | |||
46 | BlurEffectConfig::~BlurEffectConfig() | 50 | BlurEffectConfig::~BlurEffectConfig() | ||
47 | { | 51 | { | ||
Show All 15 Lines |
Shouldn't it hide or at least disable the check box?