diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-03 17:16:32 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-10 16:22:36 +0000 |
commit | d78e0edb5d35c8ba530915daff0947ae2bca636f (patch) | |
tree | 33b2fb531a21092d71f2a3ce6b786814bb5add18 /src/plugins/projectexplorer/projectnodes.cpp | |
parent | 49fef0ae24b094874186163a767c019a3cde7b00 (diff) | |
download | qt-creator-d78e0edb5d35c8ba530915daff0947ae2bca636f.tar.gz |
ProjectNodes: Remove no longer necessary signaling
The project tree is updated in one go now, so there is no need to
signal each and every change.
Change-Id: I7d5829d688b406ee2e701a2aa004b9e8bb5870a9
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectnodes.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp index ea759cc0eb..6767b3b1f0 100644 --- a/src/plugins/projectexplorer/projectnodes.cpp +++ b/src/plugins/projectexplorer/projectnodes.cpp @@ -129,13 +129,9 @@ void Node::setAbsoluteFilePathAndLine(const Utils::FileName &path, int line) m_filePath = path; m_line = line; - emitNodeUpdated(); } -Node::~Node() -{ - -} +Node::~Node() = default; NodeType Node::nodeType() const { @@ -225,18 +221,6 @@ void Node::setEnabled(bool enabled) if (m_isEnabled == enabled) return; m_isEnabled = enabled; - emitNodeUpdated(); -} - -void Node::emitNodeUpdated() -{ - if (parentFolderNode()) - ProjectTree::emitNodeUpdated(this); -} - -void Node::emitTreeChanged() -{ - ProjectTree::emitDataChanged(); } bool Node::sortByPath(const Node *a, const Node *b) @@ -532,7 +516,6 @@ void FolderNode::setDisplayName(const QString &name) if (m_displayName == name) return; m_displayName = name; - emitNodeUpdated(); } void FolderNode::setIcon(const QIcon &icon) @@ -613,11 +596,6 @@ void FolderNode::removeNode(Node *node) } /*! - Sets file nodes specified by \a files to the internal list of the folder - and emits the corresponding signals from the projectNode. -*/ - -/*! Removes all files and subfolders from this folder node. */ void FolderNode::makeEmpty() |