diff options
author | abcd <amos.choy@nokia.com> | 2012-06-08 11:15:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-10 13:52:27 +0200 |
commit | b7aa1799b694a54d99f073b61389d4ca3501779a (patch) | |
tree | ae75571e11a58da6f3aae283824409985f37b60e /tests/auto/declarative_core/tst_categorymodel.qml | |
parent | 3e50c821e716a329133468fb810f83c1627be427 (diff) | |
download | qtlocation-b7aa1799b694a54d99f073b61389d4ca3501779a.tar.gz |
ParentCategory role for CategoryModel
Change-Id: I9b8a377fbeaf780777602ec8c0d041cf2a4431d1
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests/auto/declarative_core/tst_categorymodel.qml')
-rw-r--r-- | tests/auto/declarative_core/tst_categorymodel.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative_core/tst_categorymodel.qml b/tests/auto/declarative_core/tst_categorymodel.qml index c1d2d37e..cf85fd0b 100644 --- a/tests/auto/declarative_core/tst_categorymodel.qml +++ b/tests/auto/declarative_core/tst_categorymodel.qml @@ -146,6 +146,10 @@ TestCase { category = categoryModel.model.data(categoryModel.modelIndex(i), CategoryModel.CategoryRole); compare(category.name, expectedNames[i]); + + var parentCategory = categoryModel.model.data(categoryModel.modelIndex(i), + CategoryModel.ParentCategoryRole); + compare(parentCategory.name, "Accommodation"); } categoryModel.rootIndex = categoryModel.parentModelIndex(); |