ProjectManager: Show .qrc contents again

This fixes the second regression introduced by 04a525877b.

Change-Id: I5c5c72a036f139fa564c40e95ebf6acafc99792c
Reviewed-by: Mathias Hasselmann <mathias.hasselmann@kdab.com>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
hjk
2017-02-10 13:23:53 +01:00
committed by Tim Jenssen
parent 1f540c6c9d
commit a2c6e28478
4 changed files with 16 additions and 22 deletions

View File

@@ -546,20 +546,13 @@ void FolderNode::removeNode(Node *node)
and emits the corresponding signals from the projectNode.
*/
void FolderNode::setNodes(const QList<Node *> &nodes)
{
qDeleteAll(m_nodes);
m_nodes = nodes;
for (Node *node : m_nodes)
node->setParentFolderNode(this);
}
/*!
Removes all files and subfolders from this folder node.
*/
void FolderNode::makeEmpty()
{
setNodes({});
qDeleteAll(m_nodes);
m_nodes.clear();
}
bool FolderNode::showInSimpleTree() const