Emmanuele Bassi
97feb06a6f
timeline: Add repeat-count
...
Being able to easily set the number of repeats has been a request for
the animation framework for some time now. The usual way to implement
this is: connect to the ::completed signal, use a static counter, and
stop the timeline when the counter hits a specific spot.
In the same light as the :auto-reverse property, we can make it easier
to implement this common functionality by adding a :repeat-count
property that, when set, limits the amount of loops that a Timeline can
perform before stopping itself.
In fact, we can implement the :loop property in terms of the
:repeat-count property just by using a sentinel value mapping to
"infinity", and map loop=FALSE to repeat-count=0, and loop=TRUE to
repeat-count=-1.
2012-02-13 17:30:22 +00:00
..
2012-01-16 23:37:12 +00:00
2011-11-10 19:05:39 +01:00
2011-11-18 22:06:30 +01:00
2012-01-31 16:25:05 -08:00
2011-12-08 16:13:37 +00:00
2011-12-08 16:13:38 +00:00
2012-01-26 08:31:11 +00:00
2012-01-26 08:30:58 +00:00
2011-11-03 13:45:20 +00:00
2012-01-26 15:39:16 +00:00
2012-01-26 08:31:10 +00:00
2012-01-31 10:34:45 +00:00
2012-02-09 18:42:27 +00:00
2010-05-26 14:09:24 +01:00
2011-09-29 19:34:32 +02:00
2010-10-25 23:44:53 +01:00
2011-09-29 19:34:24 +02:00
2011-10-01 12:40:11 +02:00
2012-02-13 12:00:44 +00:00
2012-01-31 11:56:59 +00:00
2012-02-13 12:00:38 +00:00
2012-02-09 15:49:30 +00:00
2011-10-15 18:36:27 +01:00
2011-10-11 17:59:46 +01:00
2011-09-12 13:12:14 +01:00
2011-10-11 23:02:17 +01:00
2011-09-12 13:12:14 +01:00
2011-11-02 13:00:46 +00:00
2011-10-07 16:56:21 +01:00
2010-09-10 11:18:53 +01:00
2011-09-07 16:14:10 +01:00
2011-10-11 17:59:46 +01:00
2012-02-09 16:34:25 +00:00
2012-02-09 16:34:25 +00:00
2011-11-03 13:45:20 +00:00
2011-10-17 10:24:25 +01:00
2012-01-30 11:09:59 +00:00
2011-10-11 17:59:46 +01:00
2011-09-02 15:48:27 +01:00
2011-10-11 17:59:46 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-10-19 15:27:03 +01:00
2011-01-20 16:35:26 +00:00
2012-01-30 11:09:59 +00:00
2011-10-11 17:59:46 +01:00
2011-11-18 17:23:56 +00:00
2011-11-02 13:00:46 +00:00
2011-03-03 11:47:49 +00:00
2011-09-12 13:12:14 +01:00
2012-01-12 10:27:17 +00:00
2011-10-11 17:59:46 +01:00
2011-10-19 15:23:55 +01:00
2011-10-19 15:23:55 +01:00
2011-09-05 17:22:14 +01:00
2011-11-10 14:13:45 +00:00
2011-10-11 17:59:46 +01:00
2011-11-28 18:30:18 +00:00
2011-02-16 14:11:59 +00:00
2011-01-19 14:33:27 +00:00
2011-11-14 13:33:04 +08:00
2011-03-01 19:04:31 +00:00
2011-09-29 19:34:31 +02:00
2012-02-09 15:38:11 +00:00
2012-01-16 23:37:13 +00:00
2011-11-18 17:54:19 +00:00
2012-02-09 16:34:25 +00:00
2010-11-18 18:23:49 +00:00
2012-01-16 23:37:11 +00:00
2011-11-28 18:30:18 +00:00
2011-01-20 16:35:26 +00:00
2011-12-08 16:13:37 +00:00
2011-11-10 14:55:03 +00:00
2011-01-21 10:25:43 +00:00
2012-01-27 09:46:10 +00:00
2011-10-11 17:59:46 +01:00
2012-01-12 10:39:59 +00:00
2011-06-20 15:25:54 +01:00
2011-06-13 16:00:45 +01:00
2011-09-12 13:12:14 +01:00
2011-10-11 17:59:46 +01:00
2009-05-29 12:40:23 +01:00
2012-01-26 08:33:45 +00:00
2011-02-28 14:16:23 +00:00
2011-01-21 10:25:43 +00:00
2011-01-21 10:25:43 +00:00
2011-06-07 16:06:24 +01:00
2012-01-27 09:43:06 +00:00
2010-10-21 12:22:17 +01:00
2011-10-11 17:59:46 +01:00
2012-01-27 15:45:11 +00:00
2009-10-14 11:31:29 +01:00
2011-05-13 01:46:32 +01:00
2011-05-13 01:46:32 +01:00
2012-01-30 11:09:59 +00:00
2011-10-11 17:59:46 +01:00
2012-01-12 10:49:16 +00:00
2011-06-13 15:36:07 +01:00
2012-01-16 23:35:16 +00:00
2011-05-26 08:48:13 -04:00
2011-02-18 15:53:27 +00:00
2012-02-13 08:52:08 +00:00
2011-10-11 17:59:46 +01:00
2011-07-26 13:44:12 +01:00
2011-06-07 16:06:24 +01:00
2011-10-12 17:25:37 +08:00
2011-11-03 14:42:39 +00:00
2011-11-03 14:42:39 +00:00
2012-01-16 23:37:13 +00:00
2012-01-16 23:37:13 +00:00
2010-08-10 17:12:06 +01:00
2009-12-02 11:36:25 +00:00
2012-02-09 18:40:03 +00:00
2011-12-28 09:37:53 +00:00
2011-11-15 17:58:25 +00:00
2012-01-17 14:29:44 +00:00
2012-02-09 18:40:03 +00:00
2012-02-13 13:39:47 +00:00
2011-07-04 15:58:08 +01:00
2010-05-19 16:10:05 +01:00
2012-02-09 18:40:03 +00:00
2012-02-09 18:40:03 +00:00
2011-06-07 16:06:24 +01:00
2011-02-28 14:34:36 +00:00
2011-11-28 15:42:35 +00:00
2011-02-28 14:34:36 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-03-07 13:26:20 +00:00
2012-01-16 21:06:19 +00:00
2011-03-03 11:47:49 +00:00
2011-01-20 16:35:26 +00:00
2011-12-01 10:55:13 +00:00
2011-10-11 17:59:46 +01:00
2012-01-16 21:06:19 +00:00
2011-11-18 17:44:42 +00:00
2011-11-18 17:44:42 +00:00
2012-02-09 18:40:03 +00:00
2012-02-09 18:40:03 +00:00
2012-01-24 12:04:56 +00:00
2012-01-24 12:04:56 +00:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-10-11 17:52:17 +01:00
2011-10-11 22:45:14 +01:00
2011-01-20 16:35:26 +00:00
2011-12-01 10:57:22 +00:00
2011-09-30 11:51:37 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-07-18 13:43:29 +01:00
2011-10-11 17:59:46 +01:00
2010-10-21 13:13:00 +01:00
2011-11-14 15:43:20 +00:00
2011-11-02 13:00:46 +00:00
2012-01-26 08:30:47 +00:00
2011-11-10 14:55:03 +00:00
2011-11-03 13:45:19 +00:00
2012-02-13 08:45:22 +00:00
2012-01-03 13:50:06 +00:00
2012-02-06 15:42:23 +00:00
2011-10-11 17:59:50 +01:00
2011-06-10 15:15:15 +01:00
2011-10-11 17:59:46 +01:00
2012-01-16 23:49:49 +00:00
2011-10-11 17:59:46 +01:00
2012-01-17 14:29:45 +00:00
2012-01-17 14:29:44 +00:00
2012-02-11 16:02:31 +00:00
2012-02-06 18:27:58 +00:00
2012-01-31 10:28:04 +00:00
2012-01-31 10:28:04 +00:00
2012-02-13 17:30:22 +00:00
2012-02-13 17:30:22 +00:00
2012-01-27 11:55:39 +00:00
2011-06-07 16:06:24 +01:00
2011-10-11 17:59:46 +01:00
2011-09-26 12:05:55 +01:00
2011-11-02 13:00:47 +00:00
2011-11-03 13:45:20 +00:00
2011-11-07 12:12:53 +08:00
2012-01-16 23:35:17 +00:00
2012-01-11 12:23:46 +00:00
2012-02-13 17:30:22 +00:00
2012-02-09 18:42:27 +00:00