From e30e34f46488471d4c689926b465de28bc089c9a Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 17 Oct 2014 16:44:18 +0200 Subject: [PATCH] TreeModel: Rows are not columns. Change-Id: I33a6d017f14ee9703b374f645c279cc26e3cb3e5 Reviewed-by: hjk --- src/libs/utils/treemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/treemodel.cpp b/src/libs/utils/treemodel.cpp index f90b0235f1a..f15741252a1 100644 --- a/src/libs/utils/treemodel.cpp +++ b/src/libs/utils/treemodel.cpp @@ -186,7 +186,7 @@ int TreeModel::columnCount(const QModelIndex &idx) const { checkIndex(idx); if (!idx.isValid()) - return m_root->rowCount(); + return m_root->columnCount(); if (idx.column() > 0) return 0; return itemFromIndex(idx)->columnCount();