aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectnodes.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-05-03 12:24:53 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-05-04 09:16:36 +0000
commitcea68a3fe3bdda8c964bcf957aad4285cb428cb9 (patch)
treeac988157ae07528e7ffb4802f1ae85a9ef1ff77e /src/plugins/projectexplorer/projectnodes.h
parent175643fd7e47379e2bbcb19de452bfe683b0e6d5 (diff)
ProjectNodes: Use a set of flags for bools in Node
This has the potential to save some space per node. Change-Id: I2b8b65c13b355e680965bb7307f9e8d8714dae64 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.h')
-rw-r--r--src/plugins/projectexplorer/projectnodes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h
index 5974e33ae8..438b1f74ea 100644
--- a/src/plugins/projectexplorer/projectnodes.h
+++ b/src/plugins/projectexplorer/projectnodes.h
@@ -161,7 +161,12 @@ private:
int m_line = -1;
int m_priority = DefaultPriority;
const NodeType m_nodeType;
- bool m_isEnabled = true;
+ enum NodeFlag : quint16 {
+ FlagNone = 0,
+ FlagIsEnabled = 1 << 0,
+ };
+ using NodeFlags = QFlags<NodeFlag>;
+ NodeFlags m_flags = FlagIsEnabled;
};
class PROJECTEXPLORER_EXPORT FileNode : public Node