summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-03-30 02:35:46 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-03-30 02:35:46 (GMT)
commit9a23f377b38a2e65da9b67982d7ca770dbcc16b0 (patch)
tree3a9a2eb64855fcab3cdf911a71955bb9282ab62a /src/declarative/graphicsitems/qdeclarativegridview.cpp
parenta716c176c5a89c5dd0e3f0a9b6738d8a217ee6b9 (diff)
parent84413a25bc025f099a075387fb6ab8449d9ef217 (diff)
downloadQt-9a23f377b38a2e65da9b67982d7ca770dbcc16b0.zip
Qt-9a23f377b38a2e65da9b67982d7ca770dbcc16b0.tar.gz
Qt-9a23f377b38a2e65da9b67982d7ca770dbcc16b0.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Return correct boundaries reasons from QTextBoundaryFinder. GridView jumps to beginning of list when resized
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp
index 546f75e..b890c4f 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -197,6 +197,7 @@ public:
if (q->isComponentComplete()) {
clear();
updateGrid();
+ setPosition(0);
q->refill();
updateCurrent(currentIndex);
}
@@ -689,7 +690,6 @@ void QDeclarativeGridViewPrivate::updateGrid()
q->setContentHeight(endPosition() - startPosition());
else
q->setContentWidth(lastPosition() - originPosition());
- setPosition(0);
}
}