diff options
Diffstat (limited to 'tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp')
-rw-r--r-- | tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp b/tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp index 339a61f996..936d4ac8a8 100644 --- a/tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp +++ b/tests/auto/qml/qqmlitemmodels/tst_qqmlitemmodels.cpp @@ -55,6 +55,7 @@ void tst_qqmlitemmodels::modelIndex() QCOMPARE(object->property("parent").toModelIndex(), index.parent()); QCOMPARE(object->property("model").value<QAbstractItemModel *>(), index.model()); QCOMPARE(object->property("internalId").toULongLong(), index.internalId()); + QCOMPARE(object->property("displayData"), index.data(Qt::DisplayRole)); if (i < 3) { index = model.index(2 + i, 4 - i, index); @@ -79,6 +80,7 @@ void tst_qqmlitemmodels::persistentModelIndex() QCOMPARE(object->property("parent").toModelIndex(), index.parent()); QCOMPARE(object->property("model").value<QAbstractItemModel *>(), index.model()); QCOMPARE(object->property("internalId").toULongLong(), index.internalId()); + QCOMPARE(object->property("displayData"), index.data(Qt::DisplayRole)); if (i < 2) { index = model.index(2 + i, 4 - i, index); |