aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qquickcanvas.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-10-31 13:10:51 +0000
committerQt by Nokia <qt-info@nokia.com>2011-11-03 11:39:25 +0100
commit73bf1bae926daeec135bb9838782916142a840f0 (patch)
tree5d1db4cb88390b85382d2de78f45cf69d48b5c50 /src/declarative/items/qquickcanvas.cpp
parent8482c9d17647dc2efa3e2be854de837b9db434a7 (diff)
Only issue non-threaded renderer warning once
Change-Id: Id278fa28080d829763c907423089897728b01baa Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/declarative/items/qquickcanvas.cpp')
-rw-r--r--src/declarative/items/qquickcanvas.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/declarative/items/qquickcanvas.cpp b/src/declarative/items/qquickcanvas.cpp
index 163dc8838c..86d44db4c9 100644
--- a/src/declarative/items/qquickcanvas.cpp
+++ b/src/declarative/items/qquickcanvas.cpp
@@ -132,9 +132,13 @@ public:
: updatePending(false)
, animationRunning(false)
{
- qWarning("QQuickCanvas: using non-threaded render loop. Be very sure to not access scene graph "
- "objects outside the QQuickItem::updatePaintNode() call. Failing to do so will cause "
- "your code to crash on other platforms!");
+ static bool warningMessage = false;
+ if (!warningMessage) {
+ warningMessage = true;
+ qWarning("QQuickCanvas: using non-threaded render loop. Be very sure to not access scene "
+ "graph objects outside the QQuickItem::updatePaintNode() call. Failing to do so "
+ "will cause your code to crash on other platforms!");
+ }
}
virtual void paint() {