summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativegridview
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-11-30 05:54:25 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-11-30 05:54:25 (GMT)
commit840ffbd6187fe2573d8c00481120d4cf30aed351 (patch)
treeb65be7919d3eb5e0b6fd63c6127234a79bd9e262 /tests/auto/declarative/qdeclarativegridview
parentfe3cfced940f41d078380ef7bdebe40d85aa49a2 (diff)
downloadQt-840ffbd6187fe2573d8c00481120d4cf30aed351.zip
Qt-840ffbd6187fe2573d8c00481120d4cf30aed351.tar.gz
Qt-840ffbd6187fe2573d8c00481120d4cf30aed351.tar.bz2
Ensure header is considered when positioning content with snapping.
When snapping is enabled the header was ignored and content would be aligned with the first item rather than the header, when at the top of the view. Task-number: QTBUG-15710 Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative/qdeclarativegridview')
-rw-r--r--tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
index 327bba2..7998e30 100644
--- a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
+++ b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
@@ -1263,7 +1263,7 @@ void tst_QDeclarativeGridView::header()
QDeclarativeView *canvas = createView();
TestModel model;
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 30; i++)
model.addItem("Item" + QString::number(i), "");
QDeclarativeContext *ctxt = canvas->rootContext();