Skip to content
Snippets Groups Projects
Commit e30e34f4 authored by hjk's avatar hjk
Browse files

TreeModel: Rows are not columns.


Change-Id: I33a6d017f14ee9703b374f645c279cc26e3cb3e5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1c451c7a
Branches
Tags
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment