forked from qt-creator/qt-creator
ProjectExplorer: Remove direct runconfig dependency from ISettingsAspect
Change-Id: I5d8a6a31f6bf97c34163b64b8d37f9ea070717ba Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -77,14 +77,14 @@ namespace ProjectExplorer {
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
ISettingsAspect::ISettingsAspect(RunConfiguration *runConfiguration) :
|
||||
m_runConfiguration(runConfiguration)
|
||||
{
|
||||
}
|
||||
ISettingsAspect::ISettingsAspect(const ConfigWidgetCreator &creator)
|
||||
: m_configWidgetCreator(creator)
|
||||
{}
|
||||
|
||||
RunConfiguration *ISettingsAspect::runConfiguration() const
|
||||
QWidget *ISettingsAspect::createConfigWidget() const
|
||||
{
|
||||
return m_runConfiguration;
|
||||
QTC_ASSERT(m_configWidgetCreator, return nullptr);
|
||||
return m_configWidgetCreator();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user