summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-20 12:16:25 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-20 13:17:50 +0200
commit021d023db2c6439b4e96d97c59b8e46ce4169ea7 (patch)
tree74abfd3d5b3c3634a76c44974f7704c90d365317
parente083a4ccd8ca7f890b4ee43057305e4a272256d6 (diff)
Call update after changing the contents flag
Change-Id: Ic26d5396753c8300323d9022a56c19f44a09ab99 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
-rw-r--r--src/datavisualizationqml2/abstractdeclarative.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datavisualizationqml2/abstractdeclarative.cpp b/src/datavisualizationqml2/abstractdeclarative.cpp
index 88a86925..a7935a84 100644
--- a/src/datavisualizationqml2/abstractdeclarative.cpp
+++ b/src/datavisualizationqml2/abstractdeclarative.cpp
@@ -88,9 +88,10 @@ void AbstractDeclarative::setRenderingMode(AbstractDeclarative::RenderingMode mo
#else
setAntialiasing(false);
#endif
- setFlag(ItemHasContents, false);
-
if (win && previousMode == RenderIndirect) {
+ update();
+ setFlag(ItemHasContents, false);
+
QObject::connect(win, &QQuickWindow::beforeRendering, this,
&AbstractDeclarative::render);
checkWindowList(win);
@@ -111,6 +112,7 @@ void AbstractDeclarative::setRenderingMode(AbstractDeclarative::RenderingMode mo
#endif
m_initialisedSize = QSize(0, 0);
setFlag(ItemHasContents, true);
+ update();
if (win) {
QObject::disconnect(win, &QQuickWindow::beforeRendering, this,
&AbstractDeclarative::render);