diff options
author | hjk <hjk@theqtcompany.com> | 2016-07-06 13:38:00 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2016-07-07 13:39:15 +0000 |
commit | e48451b0a3207a9dc31ae3308edaab9293b6a939 (patch) | |
tree | e4eaaf2268bf161504a112b39cec172d2b52921c /tests/auto | |
parent | 8667877baa6952ff443c2d51b79798ba1c8c1e23 (diff) | |
download | qt-creator-e48451b0a3207a9dc31ae3308edaab9293b6a939.tar.gz |
TreeModel: Consolidate child()/childAt() and rowCount()/childCount()
We never used the possibility to overload the virtual child() and
rowCount() functions, it's unlikely to be needed in future.
Change-Id: I7ebdf4dfc70bb0bcadea9ef3fb88f16632a95696
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/utils/treemodel/tst_treemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/utils/treemodel/tst_treemodel.cpp b/tests/auto/utils/treemodel/tst_treemodel.cpp index 974294d8e1..603a92dc5b 100644 --- a/tests/auto/utils/treemodel/tst_treemodel.cpp +++ b/tests/auto/utils/treemodel/tst_treemodel.cpp @@ -79,7 +79,7 @@ void tst_TreeModel::testIteration() group2->appendChild(item21); group2->appendChild(item22); - QCOMPARE(r->rowCount(), 3); + QCOMPARE(r->childCount(), 3); QCOMPARE(countLevelItems(r, 1), 3); QCOMPARE(countLevelItems(r, 2), 6); QCOMPARE(countLevelItems(r, 3), 0); |