Commit 35680abd authored by Christian Stenger's avatar Christian Stenger

TreeModel: Inform view about changed root

This removes the need to emit the respective signal by the caller
of setRootItem() if the tree has been constructed before using
setRootItem().

Change-Id: I6f6210a9ef7d9ec3d347dc7cfdaf853535ca7656
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent e2f8a988
......@@ -967,6 +967,7 @@ void TreeModel::setRootItem(TreeItem *item)
delete m_root;
m_root = item;
item->setModel(this);
emit layoutChanged();
}
void TreeModel::setHeader(const QStringList &displays)
......
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