kwin/effects/cube
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
..
data
CMakeLists.txt Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cube.cpp Introduce a templated animationTime overload for the KConfigXT case 2012-11-25 20:19:31 +01:00
cube.desktop SVN_SILENT made messages (.desktop file) 2012-06-12 17:07:51 +02:00
cube.h Merge CubeEffect::loadConfig with reconfigure 2012-11-21 14:42:21 +01:00
cube.kcfg Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cube_config.cpp Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cube_config.desktop SVN_SILENT made messages (.desktop file) 2012-06-12 17:07:51 +02:00
cube_config.h Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cube_config.ui Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cube_inside.h
cube_proxy.cpp
cube_proxy.h
cubeconfig.kcfgc Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cubeslide.cpp Introduce a templated animationTime overload for the KConfigXT case 2012-11-25 20:19:31 +01:00
cubeslide.desktop SVN_SILENT made messages (.desktop file) 2012-06-12 17:07:51 +02:00
cubeslide.h Effects can provide support information through properties 2012-08-17 17:49:49 +02:00
cubeslide.kcfg Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cubeslide_config.cpp Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cubeslide_config.desktop SVN_SILENT made messages (.desktop file) 2012-06-12 17:07:51 +02:00
cubeslide_config.h Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cubeslide_config.ui Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00
cubeslideconfig.kcfgc Use KConfigXT in Cube/CubeSlide effect 2012-09-14 10:39:27 +02:00