aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2014-09-17 08:06:31 +0000
committerGunnar Sletta <gunnar@sletta.org>2014-09-17 11:56:13 +0200
commit401c4e2e5eb97c221bc7d8ca36cf45aea0f8255a (patch)
treeccc4150b4f15e46530cbfb1a59d06d2e8f8465ef /src
parente3c21ca0e7681d75a27f825587b1700ead79a864 (diff)
QQuickWindow::setColor() should use update() rather than dirtyItem()
dirtyItem() will trigger maybeUpdate in the renderloop which may decide to skip the render pass if nothing changed in the scene graph. Use update() instead which forces the rendering to go through regardless. Change-Id: I4730bb0cd79d58fa21970a847cc1720060cb14a8 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquickwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp
index e1ee368f96..c522eff0a1 100644
--- a/src/quick/items/qquickwindow.cpp
+++ b/src/quick/items/qquickwindow.cpp
@@ -3521,7 +3521,7 @@ void QQuickWindow::setColor(const QColor &color)
}
d->clearColor = color;
emit colorChanged(color);
- d->dirtyItem(contentItem());
+ update();
}
QColor QQuickWindow::color() const