diff options
Diffstat (limited to 'tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp')
-rw-r--r-- | tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp b/tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp index 3d9446965e..7cd220e684 100644 --- a/tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp +++ b/tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp @@ -428,6 +428,14 @@ void checkChildren(QAbstractItemModel *currentModel, const QModelIndex &parent, const QModelIndex sibling = topLeftChild.sibling( r, c ); QVERIFY( index == sibling ); } + if (r == topLeftChild.row()) { + const QModelIndex sibling = topLeftChild.siblingAtColumn( c ); + QVERIFY( index == sibling ); + } + if (c == topLeftChild.column()) { + const QModelIndex sibling = topLeftChild.siblingAtRow( r ); + QVERIFY( index == sibling ); + } // Some basic checking on the index that is returned QCOMPARE(index.model(), currentModel); |