forked from qt-creator/qt-creator
ProjectExplorer: Split Target and ToolRunners into smaller tasks
This increases re-usability of activities like 'port gathering', and makes their use less dependent on actual device implementations. Change-Id: I017cb74874f2b38c487ba2d03906a675d5618647 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -973,7 +973,6 @@ public:
|
||||
QPointer<QWidget> m_modeWindow;
|
||||
QPointer<DebugMode> m_mode;
|
||||
|
||||
QHash<Id, RunControlCreator> m_runControlCreators;
|
||||
ActionContainer *m_menu = 0;
|
||||
|
||||
// DockWidgetEventFilter m_resizeEventFilter;
|
||||
@@ -3527,11 +3526,6 @@ bool wantRunTool(ToolMode toolMode, const QString &toolName)
|
||||
return true;
|
||||
}
|
||||
|
||||
void registerAction(Id runMode, const RunControlCreator &runControlCreator)
|
||||
{
|
||||
dd->m_runControlCreators.insert(runMode, runControlCreator);
|
||||
}
|
||||
|
||||
void registerToolbar(const QByteArray &perspectiveId, const ToolbarDescription &desc)
|
||||
{
|
||||
auto toolbar = new QWidget;
|
||||
@@ -3605,14 +3599,6 @@ void showPermanentStatusMessage(const QString &message)
|
||||
dd->m_mainWindow->showStatusMessage(message, -1);
|
||||
}
|
||||
|
||||
RunControl *createAnalyzerRunControl(RunConfiguration *runConfiguration, Id runMode)
|
||||
{
|
||||
RunControlCreator rcc = dd->m_runControlCreators.value(runMode);
|
||||
if (rcc)
|
||||
return rcc(runConfiguration, runMode);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
namespace Internal {
|
||||
|
||||
static bool s_testRun = false;
|
||||
|
||||
Reference in New Issue
Block a user