diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-09-17 08:06:31 +0000 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-09-17 11:56:13 +0200 |
commit | 401c4e2e5eb97c221bc7d8ca36cf45aea0f8255a (patch) | |
tree | ccc4150b4f15e46530cbfb1a59d06d2e8f8465ef /src | |
parent | e3c21ca0e7681d75a27f825587b1700ead79a864 (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.cpp | 2 |
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 |