forked from qt-creator/qt-creator
WinRT: Base WinRTDebugSupport on ProjectExplorer::ToolRunner
Change-Id: Ic4985d5eeee1af74a6f42b2b1df890450936f6f9 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -49,14 +49,13 @@ namespace Internal {
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
WinRtDebugSupport::WinRtDebugSupport(RunControl *runControl, WinRtRunnerHelper *runner)
|
||||
: QObject(runControl)
|
||||
, m_debugRunControl(runControl)
|
||||
: ToolRunner(runControl)
|
||||
, m_runner(runner)
|
||||
{
|
||||
connect(m_debugRunControl, &RunControl::finished, this, &WinRtDebugSupport::finish);
|
||||
connect(runControl, &RunControl::finished, this, &WinRtDebugSupport::finish);
|
||||
}
|
||||
|
||||
bool WinRtDebugSupport::useQmlDebugging(WinRtRunConfiguration *runConfig)
|
||||
bool WinRtDebugSupport::useQmlDebugging(RunConfiguration *runConfig)
|
||||
{
|
||||
Debugger::DebuggerRunConfigurationAspect *extraAspect =
|
||||
runConfig->extraAspect<Debugger::DebuggerRunConfigurationAspect>();
|
||||
|
@@ -35,7 +35,7 @@ namespace Internal {
|
||||
class WinRtRunConfiguration;
|
||||
class WinRtRunnerHelper;
|
||||
|
||||
class WinRtDebugSupport : public QObject
|
||||
class WinRtDebugSupport : public ProjectExplorer::ToolRunner
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -49,10 +49,9 @@ private:
|
||||
|
||||
void finish();
|
||||
|
||||
static bool useQmlDebugging(WinRtRunConfiguration *runConfig);
|
||||
static bool useQmlDebugging(ProjectExplorer::RunConfiguration *runConfig);
|
||||
static bool getFreePort(Utils::Port &qmlDebuggerPort, QString *errorMessage);
|
||||
|
||||
ProjectExplorer::RunControl *m_debugRunControl;
|
||||
WinRtRunnerHelper *m_runner;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user