summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidrunner.h
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2015-06-29 10:36:29 +0300
committerBogDan Vatra <bogdan@kde.org>2015-06-30 06:20:54 +0000
commit2182ded57be0bd91ab4459e622c2ac8fbef90e65 (patch)
tree1b3941c056e883b5eaa8578b26f7bc26cbf2abe9 /src/plugins/android/androidrunner.h
parent7743664957f3a9e857d72530e475d13844bd4037 (diff)
downloadqt-creator-2182ded57be0bd91ab4459e622c2ac8fbef90e65.tar.gz
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 <daniel.teske@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/android/androidrunner.h')
-rw-r--r--src/plugins/android/androidrunner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/android/androidrunner.h b/src/plugins/android/androidrunner.h
index 8f6c40d573..8bf90f4e8a 100644
--- a/src/plugins/android/androidrunner.h
+++ b/src/plugins/android/androidrunner.h
@@ -33,7 +33,7 @@
#include "androidconfigurations.h"
-#include <projectexplorer/projectexplorerconstants.h>
+#include <projectexplorer/runconfiguration.h>
#include <QObject>
#include <QTimer>
@@ -58,7 +58,7 @@ class AndroidRunner : public QThread
public:
AndroidRunner(QObject *parent, AndroidRunConfiguration *runConfig,
- ProjectExplorer::RunMode runMode);
+ Core::Id runMode);
~AndroidRunner();
QString displayName() const;