From 35680abd9e1fc64c09065b929fe2e5c754846267 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 4 Jun 2015 07:52:12 +0200 Subject: [PATCH] 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: hjk --- src/libs/utils/treemodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/utils/treemodel.cpp b/src/libs/utils/treemodel.cpp index 11076d13582..4869e0d238f 100644 --- a/src/libs/utils/treemodel.cpp +++ b/src/libs/utils/treemodel.cpp @@ -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)