diff options
author | Christopher Ham <christopher.ham@nokia.com> | 2010-12-21 07:05:04 (GMT) |
---|---|---|
committer | Christopher Ham <christopher.ham@nokia.com> | 2010-12-21 07:10:10 (GMT) |
commit | 956c026be3f0a701024aaa466e158a3744284a83 (patch) | |
tree | 7411b25b1c2bcd4678c598f127c362f96dcdb6e2 /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | 3468ee1a47bc646fe2af5de38425ee917ea92f59 (diff) | |
download | Qt-956c026be3f0a701024aaa466e158a3744284a83.zip Qt-956c026be3f0a701024aaa466e158a3744284a83.tar.gz Qt-956c026be3f0a701024aaa466e158a3744284a83.tar.bz2 |
ContentX and ContentY reset on flow change
The gridView should be visible when the flow is changed, regardless
of the content position before the flow change.
Task-number: QTBUG-16230
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index 4a6a9dc..5aa88b5 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -1606,6 +1606,8 @@ void QDeclarativeGridView::setFlow(Flow flow) setContentHeight(-1); setFlickableDirection(QDeclarativeFlickable::HorizontalFlick); } + setContentX(0); + setContentY(0); d->clear(); d->updateGrid(); refill(); |