summaryrefslogtreecommitdiff
path: root/src/declarative
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-03-30 12:35:46 +1000
committerQt Continuous Integration System <qt-info@nokia.com>2011-03-30 12:35:46 +1000
commit9a23f377b38a2e65da9b67982d7ca770dbcc16b0 (patch)
tree3a9a2eb64855fcab3cdf911a71955bb9282ab62a /src/declarative
parenta716c176c5a89c5dd0e3f0a9b6738d8a217ee6b9 (diff)
parent84413a25bc025f099a075387fb6ab8449d9ef217 (diff)
downloadqt4-tools-9a23f377b38a2e65da9b67982d7ca770dbcc16b0.tar.gz
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')
-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 546f75eeb7..b890c4f78a 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);
}
}