kwin/effects/glide
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
glide.cpp Introduce a templated animationTime overload for the KConfigXT case 2012-11-25 20:19:31 +01:00
glide.desktop SVN_SILENT made messages (.desktop file) 2012-11-11 06:50:24 +01:00
glide.h
glide.kcfg
glide_config.cpp
glide_config.desktop SVN_SILENT made messages (.desktop file) 2012-11-11 06:50:24 +01:00
glide_config.h
glide_config.ui
glideconfig.kcfgc