ProjectExplorer: Remove RunConfigWidget wrapper class

Not really needed, a QWidget does the job, too, and de-emphasizes
then 'Run' bit. The display name is now taken always from the
aspect, but that's what was the practically the case before,
albeit with different implementations.

Change all names to *[cC]onfigWidget* (in line with ISettingsAspect).

Change-Id: Ida0409a2dd0b175dd5ce4202f9b9e94b3f2db421
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2018-09-12 13:40:37 +02:00
parent f66770cde1
commit 35b941462e
13 changed files with 29 additions and 55 deletions

View File

@@ -107,9 +107,9 @@ IRunConfigurationAspect::~IRunConfigurationAspect()
transferred to the caller.
*/
RunConfigWidget *IRunConfigurationAspect::createConfigurationWidget() const
QWidget *IRunConfigurationAspect::createConfigWidget() const
{
return m_runConfigWidgetCreator ? m_runConfigWidgetCreator() : nullptr;
return m_configWidgetCreator ? m_configWidgetCreator() : nullptr;
}
void IRunConfigurationAspect::copyFrom(IRunConfigurationAspect *source)
@@ -159,9 +159,9 @@ void IRunConfigurationAspect::addToConfigurationLayout(QFormLayout *layout)
Q_UNUSED(layout);
}
void IRunConfigurationAspect::setRunConfigWidgetCreator(const RunConfigWidgetCreator &runConfigWidgetCreator)
void IRunConfigurationAspect::setConfigWidgetCreator(const ConfigWidgetCreator &runConfigWidgetCreator)
{
m_runConfigWidgetCreator = runConfigWidgetCreator;
m_configWidgetCreator = runConfigWidgetCreator;
}
void IRunConfigurationAspect::resetProjectToGlobalSettings()