summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativegridview
diff options
context:
space:
mode:
authorChristopher Ham <christopher.ham@nokia.com>2011-02-16 01:48:02 (GMT)
committerChristopher Ham <christopher.ham@nokia.com>2011-02-17 06:34:05 (GMT)
commit4e75cb56f37ac2ff22fbc562c85daeb8599753a9 (patch)
treecf1bb8ea280ab9c9cffc009c4e5277c5224dca4d /tests/auto/declarative/qdeclarativegridview
parentb5076fb392894e71b44b4762d0567354ef1c8a9e (diff)
downloadQt-4e75cb56f37ac2ff22fbc562c85daeb8599753a9.zip
Qt-4e75cb56f37ac2ff22fbc562c85daeb8599753a9.tar.gz
Qt-4e75cb56f37ac2ff22fbc562c85daeb8599753a9.tar.bz2
GridView and ListView bug fixes
ListView and GridView check before accessing an empty model. Fixed issue with undefined header. Current index initialised properly when dynamically creating ListModel items with javascript. Change-Id: I121c0626db6eb7ccaab689dfc750e0d03773d90f Task-number: QTBUG-15877 Reviewed-by: Joona Petrell
Diffstat (limited to 'tests/auto/declarative/qdeclarativegridview')
-rw-r--r--tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
index 188fd6e..4fcaed6 100644
--- a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
+++ b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
@@ -1317,6 +1317,7 @@ void tst_QDeclarativeGridView::snapping()
QDeclarativeContext *ctxt = canvas->rootContext();
ctxt->setContextProperty("testModel", &model);
ctxt->setContextProperty("testTopToBottom", QVariant(false));
+ ctxt->setContextProperty("testRightToLeft", QVariant(false));
canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/gridview1.qml"));
qApp->processEvents();
@@ -1343,6 +1344,7 @@ void tst_QDeclarativeGridView::snapping()
QCOMPARE(gridview->contentY(), 120.);
delete canvas;
+
}
void tst_QDeclarativeGridView::positionViewAtIndex_rightToLeft()