@ -170,62 +170,62 @@ void TestBuiltInEffectLoader::testSupported_data()
QTest : : addColumn < KWin : : CompositingType > ( " type " ) ;
QTest : : addColumn < bool > ( " animationsSupported " ) ;
const KWin : : CompositingType xc = KWin : : XRend erCompositing;
const KWin : : CompositingType qc = KWin : : QPaint erCompositing;
const KWin : : CompositingType oc = KWin : : OpenGL2Compositing ;
QTest : : newRow ( " blur " ) < < QStringLiteral ( " blur " ) < < false < < x c < < true ;
QTest : : newRow ( " blur " ) < < QStringLiteral ( " blur " ) < < false < < q c < < true ;
// fails for GL as it does proper tests on what's supported and doesn't just check whether it's GL
QTest : : newRow ( " blur-GL " ) < < QStringLiteral ( " blur " ) < < false < < oc < < true ;
QTest : : newRow ( " Colorpicker " ) < < QStringLiteral ( " colorpicker " ) < < false < < x c < < true ;
QTest : : newRow ( " Colorpicker " ) < < QStringLiteral ( " colorpicker " ) < < false < < q c < < true ;
QTest : : newRow ( " Colorpicker-GL " ) < < QStringLiteral ( " colorpicker " ) < < true < < oc < < true ;
QTest : : newRow ( " Contrast " ) < < QStringLiteral ( " contrast " ) < < false < < x c < < true ;
QTest : : newRow ( " Contrast " ) < < QStringLiteral ( " contrast " ) < < false < < q c < < true ;
// fails for GL as it does proper tests on what's supported and doesn't just check whether it's GL
QTest : : newRow ( " Contrast-GL " ) < < QStringLiteral ( " contrast " ) < < false < < oc < < true ;
QTest : : newRow ( " DesktopGrid " ) < < QStringLiteral ( " desktopgrid " ) < < true < < x c < < true ;
QTest : : newRow ( " DimInactive " ) < < QStringLiteral ( " diminactive " ) < < true < < x c < < true ;
QTest : : newRow ( " FallApart " ) < < QStringLiteral ( " fallapart " ) < < false < < x c < < true ;
QTest : : newRow ( " DesktopGrid " ) < < QStringLiteral ( " desktopgrid " ) < < true < < q c < < true ;
QTest : : newRow ( " DimInactive " ) < < QStringLiteral ( " diminactive " ) < < true < < q c < < true ;
QTest : : newRow ( " FallApart " ) < < QStringLiteral ( " fallapart " ) < < false < < q c < < true ;
QTest : : newRow ( " FallApart-GL " ) < < QStringLiteral ( " fallapart " ) < < true < < oc < < true ;
QTest : : newRow ( " Glide " ) < < QStringLiteral ( " glide " ) < < false < < x c < < true ;
QTest : : newRow ( " Glide " ) < < QStringLiteral ( " glide " ) < < false < < q c < < true ;
QTest : : newRow ( " Glide-GL " ) < < QStringLiteral ( " glide " ) < < true < < oc < < true ;
QTest : : newRow ( " Glide-GL-no-anim " ) < < QStringLiteral ( " glide " ) < < false < < oc < < false ;
QTest : : newRow ( " HighlightWindow " ) < < QStringLiteral ( " highlightwindow " ) < < true < < x c < < true ;
QTest : : newRow ( " Invert " ) < < QStringLiteral ( " invert " ) < < false < < x c < < true ;
QTest : : newRow ( " HighlightWindow " ) < < QStringLiteral ( " highlightwindow " ) < < true < < q c < < true ;
QTest : : newRow ( " Invert " ) < < QStringLiteral ( " invert " ) < < false < < q c < < true ;
QTest : : newRow ( " Invert-GL " ) < < QStringLiteral ( " invert " ) < < true < < oc < < true ;
QTest : : newRow ( " Kscreen " ) < < QStringLiteral ( " kscreen " ) < < true < < x c < < true ;
QTest : : newRow ( " LookingGlass " ) < < QStringLiteral ( " lookingglass " ) < < false < < x c < < true ;
QTest : : newRow ( " Kscreen " ) < < QStringLiteral ( " kscreen " ) < < true < < q c < < true ;
QTest : : newRow ( " LookingGlass " ) < < QStringLiteral ( " lookingglass " ) < < false < < q c < < true ;
QTest : : newRow ( " LookingGlass-GL " ) < < QStringLiteral ( " lookingglass " ) < < true < < oc < < true ;
QTest : : newRow ( " MagicLamp " ) < < QStringLiteral ( " magiclamp " ) < < false < < x c < < true ;
QTest : : newRow ( " MagicLamp " ) < < QStringLiteral ( " magiclamp " ) < < false < < q c < < true ;
QTest : : newRow ( " MagicLamp-GL " ) < < QStringLiteral ( " magiclamp " ) < < true < < oc < < true ;
QTest : : newRow ( " MagicLamp-GL-no-anim " ) < < QStringLiteral ( " magiclamp " ) < < false < < oc < < false ;
QTest : : newRow ( " Magnifier " ) < < QStringLiteral ( " magnifier " ) < < true < < xc < < tru e;
QTest : : newRow ( " MouseClick " ) < < QStringLiteral ( " mouseclick " ) < < true < < x c < < true ;
QTest : : newRow ( " MouseMark " ) < < QStringLiteral ( " mousemark " ) < < true < < x c < < true ;
QTest : : newRow ( " PresentWindows " ) < < QStringLiteral ( " presentwindows " ) < < true < < x c < < true ;
QTest : : newRow ( " Resize " ) < < QStringLiteral ( " resize " ) < < true < < x c < < true ;
QTest : : newRow ( " ScreenEdge " ) < < QStringLiteral ( " screenedge " ) < < true < < x c < < true ;
QTest : : newRow ( " ScreenShot " ) < < QStringLiteral ( " screenshot " ) < < true < < xc < < tru e;
QTest : : newRow ( " Sheet " ) < < QStringLiteral ( " sheet " ) < < false < < x c < < true ;
QTest : : newRow ( " Magnifier " ) < < QStringLiteral ( " magnifier " ) < < false < < qc < < fals e;
QTest : : newRow ( " MouseClick " ) < < QStringLiteral ( " mouseclick " ) < < true < < q c < < true ;
QTest : : newRow ( " MouseMark " ) < < QStringLiteral ( " mousemark " ) < < true < < q c < < true ;
QTest : : newRow ( " PresentWindows " ) < < QStringLiteral ( " presentwindows " ) < < true < < q c < < true ;
QTest : : newRow ( " Resize " ) < < QStringLiteral ( " resize " ) < < true < < q c < < true ;
QTest : : newRow ( " ScreenEdge " ) < < QStringLiteral ( " screenedge " ) < < true < < q c < < true ;
QTest : : newRow ( " ScreenShot " ) < < QStringLiteral ( " screenshot " ) < < false < < qc < < fals e;
QTest : : newRow ( " Sheet " ) < < QStringLiteral ( " sheet " ) < < false < < q c < < true ;
QTest : : newRow ( " Sheet-GL " ) < < QStringLiteral ( " sheet " ) < < true < < oc < < true ;
QTest : : newRow ( " Sheet-GL-no-anim " ) < < QStringLiteral ( " sheet " ) < < false < < oc < < false ;
QTest : : newRow ( " ShowFps " ) < < QStringLiteral ( " showfps " ) < < true < < x c < < true ;
QTest : : newRow ( " ShowPaint " ) < < QStringLiteral ( " showpaint " ) < < true < < x c < < true ;
QTest : : newRow ( " Slide " ) < < QStringLiteral ( " slide " ) < < true < < x c < < true ;
QTest : : newRow ( " SlideBack " ) < < QStringLiteral ( " slideback " ) < < true < < x c < < true ;
QTest : : newRow ( " SlidingPopups " ) < < QStringLiteral ( " slidingpopups " ) < < true < < x c < < true ;
QTest : : newRow ( " SnapHelper " ) < < QStringLiteral ( " snaphelper " ) < < true < < x c < < true ;
QTest : : newRow ( " StartupFeedback " ) < < QStringLiteral ( " startupfeedback " ) < < false < < x c < < true ;
QTest : : newRow ( " ShowFps " ) < < QStringLiteral ( " showfps " ) < < true < < q c < < true ;
QTest : : newRow ( " ShowPaint " ) < < QStringLiteral ( " showpaint " ) < < true < < q c < < true ;
QTest : : newRow ( " Slide " ) < < QStringLiteral ( " slide " ) < < true < < q c < < true ;
QTest : : newRow ( " SlideBack " ) < < QStringLiteral ( " slideback " ) < < true < < q c < < true ;
QTest : : newRow ( " SlidingPopups " ) < < QStringLiteral ( " slidingpopups " ) < < true < < q c < < true ;
QTest : : newRow ( " SnapHelper " ) < < QStringLiteral ( " snaphelper " ) < < true < < q c < < true ;
QTest : : newRow ( " StartupFeedback " ) < < QStringLiteral ( " startupfeedback " ) < < false < < q c < < true ;
QTest : : newRow ( " StartupFeedback-GL " ) < < QStringLiteral ( " startupfeedback " ) < < true < < oc < < true ;
QTest : : newRow ( " ThumbnailAside " ) < < QStringLiteral ( " thumbnailaside " ) < < true < < x c < < true ;
QTest : : newRow ( " TouchPoints " ) < < QStringLiteral ( " touchpoints " ) < < true < < x c < < true ;
QTest : : newRow ( " TrackMouse " ) < < QStringLiteral ( " trackmouse " ) < < true < < x c < < true ;
QTest : : newRow ( " WindowGeometry " ) < < QStringLiteral ( " windowgeometry " ) < < true < < x c < < true ;
QTest : : newRow ( " WobblyWindows " ) < < QStringLiteral ( " wobblywindows " ) < < false < < x c < < true ;
QTest : : newRow ( " ThumbnailAside " ) < < QStringLiteral ( " thumbnailaside " ) < < true < < q c < < true ;
QTest : : newRow ( " TouchPoints " ) < < QStringLiteral ( " touchpoints " ) < < true < < q c < < true ;
QTest : : newRow ( " TrackMouse " ) < < QStringLiteral ( " trackmouse " ) < < true < < q c < < true ;
QTest : : newRow ( " WindowGeometry " ) < < QStringLiteral ( " windowgeometry " ) < < true < < q c < < true ;
QTest : : newRow ( " WobblyWindows " ) < < QStringLiteral ( " wobblywindows " ) < < false < < q c < < true ;
QTest : : newRow ( " WobblyWindows-GL " ) < < QStringLiteral ( " wobblywindows " ) < < true < < oc < < true ;
QTest : : newRow ( " WobblyWindows-GL-no-anim " ) < < QStringLiteral ( " wobblywindows " ) < < false < < oc < < false ;
QTest : : newRow ( " Zoom " ) < < QStringLiteral ( " zoom " ) < < true < < x c < < true ;
QTest : : newRow ( " Non Existing " ) < < QStringLiteral ( " InvalidName " ) < < false < < x c < < true ;
QTest : : newRow ( " Fade - Scripted " ) < < QStringLiteral ( " fade " ) < < false < < x c < < true ;
QTest : : newRow ( " Fade - Scripted + kwin4_effect " ) < < QStringLiteral ( " kwin4_effect_fade " ) < < false < < x c < < true ;
QTest : : newRow ( " Zoom " ) < < QStringLiteral ( " zoom " ) < < true < < q c < < true ;
QTest : : newRow ( " Non Existing " ) < < QStringLiteral ( " InvalidName " ) < < false < < q c < < true ;
QTest : : newRow ( " Fade - Scripted " ) < < QStringLiteral ( " fade " ) < < false < < q c < < true ;
QTest : : newRow ( " Fade - Scripted + kwin4_effect " ) < < QStringLiteral ( " kwin4_effect_fade " ) < < false < < q c < < true ;
}
void TestBuiltInEffectLoader : : testSupported ( )
@ -248,61 +248,61 @@ void TestBuiltInEffectLoader::testLoadEffect_data()
QTest : : addColumn < bool > ( " expected " ) ;
QTest : : addColumn < KWin : : CompositingType > ( " type " ) ;
const KWin : : CompositingType xc = KWin : : XRend erCompositing;
const KWin : : CompositingType qc = KWin : : QPaint erCompositing;
const KWin : : CompositingType oc = KWin : : OpenGL2Compositing ;
QTest : : newRow ( " blur " ) < < QStringLiteral ( " blur " ) < < false < < x c;
QTest : : newRow ( " blur " ) < < QStringLiteral ( " blur " ) < < false < < q c;
// fails for GL as it does proper tests on what's supported and doesn't just check whether it's GL
QTest : : newRow ( " blur-GL " ) < < QStringLiteral ( " blur " ) < < false < < oc ;
QTest : : newRow ( " Colorpicker " ) < < QStringLiteral ( " colorpicker " ) < < false < < x c;
QTest : : newRow ( " Colorpicker " ) < < QStringLiteral ( " colorpicker " ) < < false < < q c;
QTest : : newRow ( " Colorpicker-GL " ) < < QStringLiteral ( " colorpicker " ) < < true < < oc ;
QTest : : newRow ( " Contrast " ) < < QStringLiteral ( " contrast " ) < < false < < x c;
QTest : : newRow ( " Contrast " ) < < QStringLiteral ( " contrast " ) < < false < < q c;
// fails for GL as it does proper tests on what's supported and doesn't just check whether it's GL
QTest : : newRow ( " Contrast-GL " ) < < QStringLiteral ( " contrast " ) < < false < < oc ;
QTest : : newRow ( " DesktopGrid " ) < < QStringLiteral ( " desktopgrid " ) < < true < < x c;
QTest : : newRow ( " DimInactive " ) < < QStringLiteral ( " diminactive " ) < < true < < x c;
QTest : : newRow ( " FallApart " ) < < QStringLiteral ( " fallapart " ) < < false < < x c;
QTest : : newRow ( " DesktopGrid " ) < < QStringLiteral ( " desktopgrid " ) < < true < < q c;
QTest : : newRow ( " DimInactive " ) < < QStringLiteral ( " diminactive " ) < < true < < q c;
QTest : : newRow ( " FallApart " ) < < QStringLiteral ( " fallapart " ) < < false < < q c;
QTest : : newRow ( " FallApart-GL " ) < < QStringLiteral ( " fallapart " ) < < true < < oc ;
QTest : : newRow ( " Glide " ) < < QStringLiteral ( " glide " ) < < false < < x c;
QTest : : newRow ( " Glide " ) < < QStringLiteral ( " glide " ) < < false < < q c;
QTest : : newRow ( " Glide-GL " ) < < QStringLiteral ( " glide " ) < < true < < oc ;
QTest : : newRow ( " HighlightWindow " ) < < QStringLiteral ( " highlightwindow " ) < < true < < x c;
QTest : : newRow ( " Invert " ) < < QStringLiteral ( " invert " ) < < false < < x c;
QTest : : newRow ( " HighlightWindow " ) < < QStringLiteral ( " highlightwindow " ) < < true < < q c;
QTest : : newRow ( " Invert " ) < < QStringLiteral ( " invert " ) < < false < < q c;
QTest : : newRow ( " Invert-GL " ) < < QStringLiteral ( " invert " ) < < true < < oc ;
QTest : : newRow ( " Kscreen " ) < < QStringLiteral ( " kscreen " ) < < true < < x c;
QTest : : newRow ( " LookingGlass " ) < < QStringLiteral ( " lookingglass " ) < < false < < x c;
QTest : : newRow ( " Kscreen " ) < < QStringLiteral ( " kscreen " ) < < true < < q c;
QTest : : newRow ( " LookingGlass " ) < < QStringLiteral ( " lookingglass " ) < < false < < q c;
QTest : : newRow ( " LookingGlass-GL " ) < < QStringLiteral ( " lookingglass " ) < < true < < oc ;
QTest : : newRow ( " MagicLamp " ) < < QStringLiteral ( " magiclamp " ) < < false < < x c;
QTest : : newRow ( " MagicLamp " ) < < QStringLiteral ( " magiclamp " ) < < false < < q c;
QTest : : newRow ( " MagicLamp-GL " ) < < QStringLiteral ( " magiclamp " ) < < true < < oc ;
QTest : : newRow ( " Magnifier " ) < < QStringLiteral ( " magnifier " ) < < true < < x c;
QTest : : newRow ( " MouseClick " ) < < QStringLiteral ( " mouseclick " ) < < true < < x c;
QTest : : newRow ( " MouseMark " ) < < QStringLiteral ( " mousemark " ) < < true < < x c;
QTest : : newRow ( " PresentWindows " ) < < QStringLiteral ( " presentwindows " ) < < true < < x c;
QTest : : newRow ( " Resize " ) < < QStringLiteral ( " resize " ) < < true < < x c;
QTest : : newRow ( " ScreenEdge " ) < < QStringLiteral ( " screenedge " ) < < true < < x c;
QTest : : newRow ( " ScreenShot " ) < < QStringLiteral ( " screenshot " ) < < true < < x c;
QTest : : newRow ( " Sheet " ) < < QStringLiteral ( " sheet " ) < < false < < x c;
QTest : : newRow ( " Magnifier " ) < < QStringLiteral ( " magnifier " ) < < false < < q c;
QTest : : newRow ( " MouseClick " ) < < QStringLiteral ( " mouseclick " ) < < true < < q c;
QTest : : newRow ( " MouseMark " ) < < QStringLiteral ( " mousemark " ) < < true < < q c;
QTest : : newRow ( " PresentWindows " ) < < QStringLiteral ( " presentwindows " ) < < true < < q c;
QTest : : newRow ( " Resize " ) < < QStringLiteral ( " resize " ) < < true < < q c;
QTest : : newRow ( " ScreenEdge " ) < < QStringLiteral ( " screenedge " ) < < true < < q c;
QTest : : newRow ( " ScreenShot " ) < < QStringLiteral ( " screenshot " ) < < false < < q c;
QTest : : newRow ( " Sheet " ) < < QStringLiteral ( " sheet " ) < < false < < q c;
QTest : : newRow ( " Sheet-GL " ) < < QStringLiteral ( " sheet " ) < < true < < oc ;
// TODO: Accesses EffectFrame and crashes
// QTest::newRow("ShowFps") << QStringLiteral("showfps") << true << xc;
QTest : : newRow ( " ShowPaint " ) < < QStringLiteral ( " showpaint " ) < < true < < x c;
QTest : : newRow ( " Slide " ) < < QStringLiteral ( " slide " ) < < true < < x c;
QTest : : newRow ( " SlideBack " ) < < QStringLiteral ( " slideback " ) < < true < < x c;
QTest : : newRow ( " SlidingPopups " ) < < QStringLiteral ( " slidingpopups " ) < < true < < x c;
QTest : : newRow ( " SnapHelper " ) < < QStringLiteral ( " snaphelper " ) < < true < < x c;
QTest : : newRow ( " StartupFeedback " ) < < QStringLiteral ( " startupfeedback " ) < < false < < x c;
QTest : : newRow ( " ShowPaint " ) < < QStringLiteral ( " showpaint " ) < < true < < q c;
QTest : : newRow ( " Slide " ) < < QStringLiteral ( " slide " ) < < true < < q c;
QTest : : newRow ( " SlideBack " ) < < QStringLiteral ( " slideback " ) < < true < < q c;
QTest : : newRow ( " SlidingPopups " ) < < QStringLiteral ( " slidingpopups " ) < < true < < q c;
QTest : : newRow ( " SnapHelper " ) < < QStringLiteral ( " snaphelper " ) < < true < < q c;
QTest : : newRow ( " StartupFeedback " ) < < QStringLiteral ( " startupfeedback " ) < < false < < q c;
// Tries to load shader and makes our test abort
// QTest::newRow("StartupFeedback-GL") << QStringLiteral("startupfeedback") << true << oc;
QTest : : newRow ( " ThumbnailAside " ) < < QStringLiteral ( " thumbnailaside " ) < < true < < x c;
QTest : : newRow ( " Touchpoints " ) < < QStringLiteral ( " touchpoints " ) < < true < < x c;
QTest : : newRow ( " TrackMouse " ) < < QStringLiteral ( " trackmouse " ) < < true < < x c;
QTest : : newRow ( " ThumbnailAside " ) < < QStringLiteral ( " thumbnailaside " ) < < true < < q c;
QTest : : newRow ( " Touchpoints " ) < < QStringLiteral ( " touchpoints " ) < < true < < q c;
QTest : : newRow ( " TrackMouse " ) < < QStringLiteral ( " trackmouse " ) < < true < < q c;
// TODO: Accesses EffectFrame and crashes
// QTest::newRow("WindowGeometry") << QStringLiteral("windowgeometry") << true << xc;
QTest : : newRow ( " WobblyWindows " ) < < QStringLiteral ( " wobblywindows " ) < < false < < x c;
QTest : : newRow ( " WobblyWindows " ) < < QStringLiteral ( " wobblywindows " ) < < false < < q c;
QTest : : newRow ( " WobblyWindows-GL " ) < < QStringLiteral ( " wobblywindows " ) < < true < < oc ;
QTest : : newRow ( " Zoom " ) < < QStringLiteral ( " zoom " ) < < true < < x c;
QTest : : newRow ( " Non Existing " ) < < QStringLiteral ( " InvalidName " ) < < false < < x c;
QTest : : newRow ( " Fade - Scripted " ) < < QStringLiteral ( " fade " ) < < false < < x c;
QTest : : newRow ( " Fade - Scripted + kwin4_effect " ) < < QStringLiteral ( " kwin4_effect_fade " ) < < false < < x c;
QTest : : newRow ( " Zoom " ) < < QStringLiteral ( " zoom " ) < < true < < q c;
QTest : : newRow ( " Non Existing " ) < < QStringLiteral ( " InvalidName " ) < < false < < q c;
QTest : : newRow ( " Fade - Scripted " ) < < QStringLiteral ( " fade " ) < < false < < q c;
QTest : : newRow ( " Fade - Scripted + kwin4_effect " ) < < QStringLiteral ( " kwin4_effect_fade " ) < < false < < q c;
}
void TestBuiltInEffectLoader : : testLoadEffect ( )
@ -365,7 +365,7 @@ void TestBuiltInEffectLoader::testLoadBuiltInEffect_data()
QTest : : addColumn < KWin : : CompositingType > ( " type " ) ;
QTest : : addColumn < KWin : : LoadEffectFlags > ( " loadFlags " ) ;
const KWin : : CompositingType xc = KWin : : XRend erCompositing;
const KWin : : CompositingType qc = KWin : : QPaint erCompositing;
const KWin : : CompositingType oc = KWin : : OpenGL2Compositing ;
const KWin : : LoadEffectFlags checkDefault = KWin : : LoadEffectFlag : : Load | KWin : : LoadEffectFlag : : CheckDefaultFunction ;
@ -375,21 +375,21 @@ void TestBuiltInEffectLoader::testLoadBuiltInEffect_data()
// enabled by default, but not supported
QTest : : newRow ( " blur " ) < < KWin : : BuiltInEffect : : Blur < < QStringLiteral ( " blur " ) < < false < < oc < < checkDefault ;
// enabled by default
QTest : : newRow ( " HighlightWindow " ) < < KWin : : BuiltInEffect : : HighlightWindow < < QStringLiteral ( " highlightwindow " ) < < true < < x c < < checkDefault ;
QTest : : newRow ( " HighlightWindow " ) < < KWin : : BuiltInEffect : : HighlightWindow < < QStringLiteral ( " highlightwindow " ) < < true < < q c < < checkDefault ;
// supported but not enabled by default
QTest : : newRow ( " LookingGlass-GL " ) < < KWin : : BuiltInEffect : : LookingGlass < < QStringLiteral ( " lookingglass " ) < < true < < oc < < checkDefault ;
// not enabled by default
QTest : : newRow ( " MouseClick " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < true < < x c < < checkDefault ;
QTest : : newRow ( " MouseClick " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < true < < q c < < checkDefault ;
// Force an Effect which will load
QTest : : newRow ( " MouseClick-Force " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < true < < x c < < forceFlags ;
QTest : : newRow ( " MouseClick-Force " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < true < < q c < < forceFlags ;
// Force an Effect which is not supported
QTest : : newRow ( " LookingGlass-Force " ) < < KWin : : BuiltInEffect : : LookingGlass < < QStringLiteral ( " lookingglass " ) < < false < < x c < < forceFlags ;
QTest : : newRow ( " LookingGlass-Force " ) < < KWin : : BuiltInEffect : : LookingGlass < < QStringLiteral ( " lookingglass " ) < < false < < q c < < forceFlags ;
// Force the Effect as supported
QTest : : newRow ( " LookingGlass-Force-GL " ) < < KWin : : BuiltInEffect : : LookingGlass < < QStringLiteral ( " lookingglass " ) < < true < < oc < < forceFlags ;
// Enforce no load of effect which is enabled by default
QTest : : newRow ( " HighlightWindow-DontLoad " ) < < KWin : : BuiltInEffect : : HighlightWindow < < QStringLiteral ( " highlightwindow " ) < < false < < x c < < dontLoadFlags ;
QTest : : newRow ( " HighlightWindow-DontLoad " ) < < KWin : : BuiltInEffect : : HighlightWindow < < QStringLiteral ( " highlightwindow " ) < < false < < q c < < dontLoadFlags ;
// Enforce no load of effect which is not enabled by default, but enforced
QTest : : newRow ( " MouseClick-DontLoad " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < false < < x c < < dontLoadFlags ;
QTest : : newRow ( " MouseClick-DontLoad " ) < < KWin : : BuiltInEffect : : MouseClick < < QStringLiteral ( " mouseclick " ) < < false < < q c < < dontLoadFlags ;
}
void TestBuiltInEffectLoader : : testLoadBuiltInEffect ( )
@ -447,7 +447,7 @@ void TestBuiltInEffectLoader::testLoadBuiltInEffect()
void TestBuiltInEffectLoader : : testLoadAllEffects ( )
{
QScopedPointer < MockEffectsHandler , QScopedPointerDeleteLater > mockHandler ( new MockEffectsHandler ( KWin : : XRend erCompositing) ) ;
QScopedPointer < MockEffectsHandler , QScopedPointerDeleteLater > mockHandler ( new MockEffectsHandler ( KWin : : QPaint erCompositing) ) ;
KWin : : BuiltInEffectLoader loader ;
KSharedConfig : : Ptr config = KSharedConfig : : openConfig ( QString ( ) , KConfig : : SimpleConfig ) ;