aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltreemodeltotablemodel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmltreemodeltotablemodel')
-rw-r--r--tests/auto/qml/qqmltreemodeltotablemodel/testmodel.cpp2
-rw-r--r--tests/auto/qml/qqmltreemodeltotablemodel/tst_qqmltreemodeltotablemodel.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmltreemodeltotablemodel/testmodel.cpp b/tests/auto/qml/qqmltreemodeltotablemodel/testmodel.cpp
index 8bf9561316..58587da79c 100644
--- a/tests/auto/qml/qqmltreemodeltotablemodel/testmodel.cpp
+++ b/tests/auto/qml/qqmltreemodeltotablemodel/testmodel.cpp
@@ -52,7 +52,7 @@ int TestModel::rowCount(const QModelIndex &parent) const
if (!parent.isValid())
return 1; // root of the tree
if (parent.column() == 0)
- return treeItem(parent)->m_childItems.count();
+ return treeItem(parent)->m_childItems.size();
return 0;
}
diff --git a/tests/auto/qml/qqmltreemodeltotablemodel/tst_qqmltreemodeltotablemodel.cpp b/tests/auto/qml/qqmltreemodeltotablemodel/tst_qqmltreemodeltotablemodel.cpp
index 3efc369b57..cd9aed4b30 100644
--- a/tests/auto/qml/qqmltreemodeltotablemodel/tst_qqmltreemodeltotablemodel.cpp
+++ b/tests/auto/qml/qqmltreemodeltotablemodel/tst_qqmltreemodeltotablemodel.cpp
@@ -8,6 +8,10 @@
#include "testmodel.h"
+/*
+ * Note: Out of practical reasons, QQmlTreeModelToTableModel is by and large
+ * tested from tst_qquicktreeview.cpp, where TreeView is available.
+ */
class tst_QQmlTreeModelToTableModel : public QObject {
Q_OBJECT