summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-01 04:55:56 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-01 04:55:56 (GMT)
commit7fed799b0ac8c472c99d28943ab9d8aae78a9836 (patch)
tree9f033732b0e0bd5381ca9d805e43090f3a29d04d
parent20def6f5fe3e02bda1c5f5873ed1923d36511312 (diff)
downloadQt-7fed799b0ac8c472c99d28943ab9d8aae78a9836.zip
Qt-7fed799b0ac8c472c99d28943ab9d8aae78a9836.tar.gz
Qt-7fed799b0ac8c472c99d28943ab9d8aae78a9836.tar.bz2
Use setOpacity(0.) rather than setVisible() to avoid positioner relayout.
-rw-r--r--src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
index 2402648..cd72ef9 100644
--- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
+++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
@@ -917,7 +917,7 @@ QDeclarativeVisualDataModel::ReleaseFlags QDeclarativeVisualDataModel::release(Q
if (inPackage) {
emit destroyingPackage(qobject_cast<QDeclarativePackage*>(obj));
} else {
- item->setVisible(false);
+ item->setOpacity(0.0);
static_cast<QGraphicsItem*>(item)->setParentItem(0);
}
stat |= Destroyed;