aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindtool.h
diff options
context:
space:
mode:
authorBogDan Vatra <[email protected]>2015-06-29 10:36:29 +0300
committerBogDan Vatra <[email protected]>2015-06-30 06:20:54 +0000
commit2182ded57be0bd91ab4459e622c2ac8fbef90e65 (patch)
tree1b3941c056e883b5eaa8578b26f7bc26cbf2abe9 /src/plugins/valgrind/callgrindtool.h
parent7743664957f3a9e857d72530e475d13844bd4037 (diff)
ProjectExplorer: Use Core::Id as RunMode "enum values"
This provides a way for third-party plugins to implement run modes without the need to add a value to the central enum or using manual workarounds like RunMode(*(int*)&someUniqueObject). Instead of centrally defined enum values this uses Core::Id that could be defined anywhere. Change-Id: Ic350e3d8dbb8042c61b2d4ffec993ca151f53099 Reviewed-by: Daniel Teske <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.h')
-rw-r--r--src/plugins/valgrind/callgrindtool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/valgrind/callgrindtool.h b/src/plugins/valgrind/callgrindtool.h
index 0018ecab2aa..0ef8905c6ba 100644
--- a/src/plugins/valgrind/callgrindtool.h
+++ b/src/plugins/valgrind/callgrindtool.h
@@ -41,6 +41,8 @@ const char CallgrindLocalActionId[] = "Callgrind.Local";
const char CallgrindRemoteActionId[] = "Callgrind.Remote";
class ValgrindRunControl;
+const char CALLGRIND_RUN_MODE[] = "CallgrindTool.CallgrindRunMode";
+
class CallgrindToolPrivate;
class CallgrindTool : public QObject