summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-08 23:52:05 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-08 23:52:05 (GMT)
commit8f1cb90d810fcff31447b4fbcef59b1bf289aa67 (patch)
tree13021b773e64fb45d99b8c838d200e3de2e12d01 /src
parent139b84198b6bd0454becc9d5ae1a64a1e22f1fe2 (diff)
downloadQt-8f1cb90d810fcff31447b4fbcef59b1bf289aa67.zip
Qt-8f1cb90d810fcff31447b4fbcef59b1bf289aa67.tar.gz
Qt-8f1cb90d810fcff31447b4fbcef59b1bf289aa67.tar.bz2
Calculate GridView columns regardless of whether we have a populated model
Task-number: QTBUG-9692
Diffstat (limited to 'src')
-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 283052a..f832f12 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -1820,8 +1820,8 @@ void QDeclarativeGridView::componentComplete()
{
Q_D(QDeclarativeGridView);
QDeclarativeFlickable::componentComplete();
+ d->updateGrid();
if (d->isValid()) {
- d->updateGrid();
refill();
if (d->currentIndex < 0)
d->updateCurrent(0);