Change-Id: Id278fa28080d829763c907423089897728b01baa
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
: 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() {