Commit e30e34f4 authored by hjk's avatar hjk

TreeModel: Rows are not columns.

Change-Id: I33a6d017f14ee9703b374f645c279cc26e3cb3e5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1c451c7a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment