Drop EffectsHandler::effectsConfig
Summary: The effectsConfig is no longer used by any Effect. ScriptedEffects use KWin's KSharedConfigPtr and the builtin effects all have a kcfg with kwinrc being hard coded. The effectsConfig had the big disadvantage that it hardcoded kwinrc while the rest of kwin uses a KSharedConfigPtr which might not point to kwinrc. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3384
This commit is contained in:
parent
af83401b83
commit
1c819c5e86
2 changed files with 0 additions and 11 deletions
|
@ -760,12 +760,6 @@ bool EffectsHandler::isOpenGLCompositing() const
|
||||||
return compositing_type & OpenGLCompositing;
|
return compositing_type & OpenGLCompositing;
|
||||||
}
|
}
|
||||||
|
|
||||||
KConfigGroup EffectsHandler::effectConfig(const QString& effectname)
|
|
||||||
{
|
|
||||||
KSharedConfig::Ptr kwinconfig = KSharedConfig::openConfig(QStringLiteral(KWIN_CONFIG), KConfig::NoGlobals);
|
|
||||||
return kwinconfig->group(QLatin1String("Effect-") + effectname);
|
|
||||||
}
|
|
||||||
|
|
||||||
EffectsHandler* effects = nullptr;
|
EffectsHandler* effects = nullptr;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1198,11 +1198,6 @@ public:
|
||||||
**/
|
**/
|
||||||
virtual void showCursor() = 0;
|
virtual void showCursor() = 0;
|
||||||
|
|
||||||
/**
|
|
||||||
* @return @ref KConfigGroup which holds given effect's config options
|
|
||||||
**/
|
|
||||||
static KConfigGroup effectConfig(const QString& effectname);
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* Signal emitted when the current desktop changed.
|
* Signal emitted when the current desktop changed.
|
||||||
|
|
Loading…
Reference in a new issue