diff options
author | Christopher Ham <christopher.ham@nokia.com> | 2011-02-16 01:48:02 (GMT) |
---|---|---|
committer | Christopher Ham <christopher.ham@nokia.com> | 2011-02-17 06:34:05 (GMT) |
commit | 4e75cb56f37ac2ff22fbc562c85daeb8599753a9 (patch) | |
tree | cf1bb8ea280ab9c9cffc009c4e5277c5224dca4d /tests/auto/declarative/qdeclarativelistview | |
parent | b5076fb392894e71b44b4762d0567354ef1c8a9e (diff) | |
download | Qt-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/qdeclarativelistview')
-rw-r--r-- | tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp index 26219fe..02c8dad 100644 --- a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp +++ b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp @@ -2332,7 +2332,7 @@ void tst_QDeclarativeListView::rightToLeft() item = findItem<QDeclarativeItem>(contentItem, "item3"); QTRY_VERIFY(item); - QTRY_COMPARE(item->x(), -600.0); + QTRY_COMPARE(item->x(), -540.0); text = findItem<QDeclarativeText>(contentItem, "text3"); QTRY_VERIFY(text); |