From 21a0cda05568ae8356c42383d79ab89c6b41d481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 3 Apr 2014 11:04:28 +0200 Subject: [PATCH] [desktopgrid] Use BuiltInEffects to specify the name of the effect proxy DesktopGrid uses PresentWindows Effect as a proxy effect. Instead of hard coding the name of the Effect let's use the name resolving provided by BuiltInEffects. --- effects/desktopgrid/desktopgrid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 2b7d04f19a..8b03a55f25 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -25,6 +25,7 @@ along with this program. If not, see . #include "desktopgridconfig.h" #include "../presentwindows/presentwindows_proxy.h" +#include "../effect_builtins.h" #include @@ -1092,7 +1093,7 @@ void DesktopGridEffect::setup() // setup the motion managers if (m_usePresentWindows) - m_proxy = static_cast(effects->getProxy(QStringLiteral("presentwindows"))); + m_proxy = static_cast(effects->getProxy(BuiltInEffects::nameForEffect(BuiltInEffect::PresentWindows))); if (isUsingPresentWindows()) { for (int i = 1; i <= effects->numberOfDesktops(); i++) { for (int j = 0; j < effects->numScreens(); j++) {