forked from qt-creator/qt-creator
RunConfiguration: Add method to add individual RunConfigurationAspects
Change-Id: I6ed2e2ae673840ff4340eedd96fe5019ab495679 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -156,11 +156,16 @@ void RunConfiguration::addExtraAspects()
|
||||
return;
|
||||
|
||||
foreach (IRunControlFactory *factory, ExtensionSystem::PluginManager::getObjects<IRunControlFactory>())
|
||||
if (IRunConfigurationAspect *aspect = factory->createRunConfigurationAspect(this))
|
||||
m_aspects.append(aspect);
|
||||
addExtraAspect(factory->createRunConfigurationAspect(this));
|
||||
m_aspectsInitialized = true;
|
||||
}
|
||||
|
||||
void RunConfiguration::addExtraAspect(IRunConfigurationAspect *aspect)
|
||||
{
|
||||
if (aspect)
|
||||
m_aspects += aspect;
|
||||
}
|
||||
|
||||
void RunConfiguration::ctor()
|
||||
{
|
||||
connect(this, SIGNAL(enabledChanged()), this, SIGNAL(requestRunActionsUpdate()));
|
||||
|
||||
@@ -126,6 +126,7 @@ public:
|
||||
virtual ProjectExplorer::Abi abi() const;
|
||||
|
||||
void addExtraAspects();
|
||||
void addExtraAspect(IRunConfigurationAspect *aspect);
|
||||
|
||||
signals:
|
||||
void enabledChanged();
|
||||
|
||||
Reference in New Issue
Block a user