aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktreeview/testmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicktreeview/testmodel.h')
-rw-r--r--tests/auto/quick/qquicktreeview/testmodel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktreeview/testmodel.h b/tests/auto/quick/qquicktreeview/testmodel.h
index 4d9006d112..fc4272af8b 100644
--- a/tests/auto/quick/qquicktreeview/testmodel.h
+++ b/tests/auto/quick/qquicktreeview/testmodel.h
@@ -64,7 +64,7 @@ class TestModel : public QAbstractItemModel
public:
explicit TestModel(QObject *parent = nullptr);
- void createTreeRecursive(TreeItem *item, int childCount, int currentDepth, int maxDepth);
+ void createTreeRecursive(TreeItem *item, int childCount, int currentDepth);
TreeItem *treeItem(const QModelIndex &index) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex & = QModelIndex()) const override;
@@ -72,6 +72,7 @@ public:
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &index) const override;
+ int maxDepth() { return 4; }
bool insertRows(int position, int rows, const QModelIndex &parent) override;