forked from qt-creator/qt-creator
ProjectExplorer: rename RunConfiguration::extraApects() to aspects()
It's the standard way nowaday, nothing 'extra' to it anymore. Also change to ranged for when using it. Change-Id: Ic39480e736ba09fdcafc38d5e8d16ee4ec750fdd Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -202,7 +202,7 @@ public:
|
||||
bool fromMap(const QVariantMap &map) override;
|
||||
QVariantMap toMap() const override;
|
||||
|
||||
QList<IRunConfigurationAspect *> extraAspects() const;
|
||||
const QList<IRunConfigurationAspect *> aspects() const;
|
||||
IRunConfigurationAspect *extraAspect(Core::Id id) const;
|
||||
|
||||
template <typename T> T *extraAspect() const
|
||||
|
||||
@@ -528,9 +528,8 @@ QString RunSettingsWidget::uniqueRCName(const QString &name)
|
||||
|
||||
void RunSettingsWidget::addRunControlWidgets()
|
||||
{
|
||||
foreach (IRunConfigurationAspect *aspect, m_runConfiguration->extraAspects()) {
|
||||
RunConfigWidget *rcw = aspect->createConfigurationWidget();
|
||||
if (rcw)
|
||||
for (IRunConfigurationAspect *aspect : m_runConfiguration->aspects()) {
|
||||
if (RunConfigWidget *rcw = aspect->createConfigurationWidget())
|
||||
addSubWidget(rcw);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user