aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/customitems/painteditem
diff options
context:
space:
mode:
authorAlan Alpert <aalpert@blackberry.com>2013-05-31 10:38:33 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-07 19:09:33 +0200
commit9d75626b1073113d77988bcb52e99215d5af4787 (patch)
treeb42ad298daaae258a405367da1c9fd0d56d3013c /examples/quick/customitems/painteditem
parentcfd4bf9d6cb8a932eab5ac99bae8973b9cedc803 (diff)
Set incubation controller when a Window{} is loaded via QQmlApplicationEngine
This was the one convenience that was lost when transitioning templates from QQuickView + Item{} to QQmlApplicationEngine + Window{}. As the default window incubation controller was tied to the first window's frameSwapped, we could easily run into a situation where a secondary window required incubation while the first window was idle. This would then starve the incubation controller. Instead make it so that the renderloop emits "timeToIncubate" once it is done with a renderpass over all windows, so the incubator gets to run once and exactly once per vsync when animating. The incubator logic was also flawed in that it could post a lot of events to itself as a result of incubatingObjectCountChanged and thus starve system events while processing incubation requests. Now we start a timer and don't start it again until we have completed an incubation pass. Task-number: QTBUG-31203 Change-Id: Iea9e2c81efb46bb7875c70ccda0cdc4b3b3e58e7 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'examples/quick/customitems/painteditem')
-rw-r--r--examples/quick/customitems/painteditem/painteditem.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/quick/customitems/painteditem/painteditem.pro b/examples/quick/customitems/painteditem/painteditem.pro
index 77e4d146e1..3ec6420abf 100644
--- a/examples/quick/customitems/painteditem/painteditem.pro
+++ b/examples/quick/customitems/painteditem/painteditem.pro
@@ -18,3 +18,6 @@ qmldir.files = TextBalloonPlugin/qmldir
qmldir.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/TextBalloonPlugin
INSTALLS += qmldir target
+
+OTHER_FILES += \
+ textballoons.qml