From b69e8e3f182a7727f420e967d2aed9fc1430ce91 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 21 May 2009 13:31:38 -0400 Subject: Get the number of children for the row even if the column isn't 0 --- sigmodr/tree/TreeModel.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'sigmodr/tree/TreeModel.cpp') diff --git a/sigmodr/tree/TreeModel.cpp b/sigmodr/tree/TreeModel.cpp index 3f0884f2..879d56d3 100644 --- a/sigmodr/tree/TreeModel.cpp +++ b/sigmodr/tree/TreeModel.cpp @@ -110,8 +110,6 @@ int TreeModel::rowCount(const QModelIndex& parent) const { if (!parent.isValid()) return 0; - if (0 < parent.column()) - return 0; return static_cast(parent.internalPointer())->childCount(); } -- cgit