forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -36,10 +36,11 @@
|
||||
|
||||
#include <QMetaType>
|
||||
|
||||
#include <coreplugin/id.h>
|
||||
#include <ssh/sshconnection.h>
|
||||
#include <utils/environment.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/applicationlauncher.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
namespace Analyzer {
|
||||
|
||||
@@ -49,7 +50,7 @@ namespace Analyzer {
|
||||
class ANALYZER_EXPORT AnalyzerStartParameters
|
||||
{
|
||||
public:
|
||||
ProjectExplorer::RunMode runMode;
|
||||
Core::Id runMode = ProjectExplorer::Constants::NO_RUN_MODE;
|
||||
QSsh::SshConnectionParameters connParams;
|
||||
ProjectExplorer::ApplicationLauncher::Mode localRunMode
|
||||
= ProjectExplorer::ApplicationLauncher::Gui;
|
||||
|
||||
Reference in New Issue
Block a user