kwin/effects/coverswitch
Martin Gräßlin 18cccad806 Introduce a templated animationTime overload for the KConfigXT case
This method can be used to get the animationTime in case a configuration
class generated through KConfigXT is used. In general the configuration
stores the magic value 0 for a property "duration". This magic value
indicates that a hard-coded default value should be used.

So the common logic to test the stored value for 0 and then either pass
the stored value or the default value to animationTime is encapsulated
in this method in a generic way.

A MyEffect can use it in the following way:
animationTime<MyEffectConfig>(200);

BUG: 310646
FIXED-IN: 4.10
REVIEW: 107460
2012-11-25 20:19:31 +01:00
..
CMakeLists.txt Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00
coverswitch-reflection.glsl Reflection plane in Coverswitch and GLES 2011-01-30 14:12:02 +01:00
coverswitch.cpp Introduce a templated animationTime overload for the KConfigXT case 2012-11-25 20:19:31 +01:00
coverswitch.desktop SVN_SILENT made messages (.desktop file) 2012-07-24 19:29:09 +02:00
coverswitch.h Merge branch 'KDE/4.9' 2012-08-17 17:59:49 +02:00
coverswitch.kcfg Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00
coverswitch_config.cpp Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00
coverswitch_config.desktop SVN_SILENT made messages (.desktop file) 2012-05-28 11:08:19 +02:00
coverswitch_config.h Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00
coverswitch_config.ui Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00
coverswitchconfig.kcfgc Use KConfigXT in CoverSwitch Effect 2012-10-26 10:18:35 +02:00