ProjectExplorer: Use BuildStep member to decide on initial expansion

Previously, the build step implementation had the same power as it
decided on the widget to use, and the widget had such a member.

Change-Id: Id9c783e29610b68cfbbe2c9aa91da831d41c3286
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-10-19 17:40:33 +02:00
parent fb9865444d
commit 44a545bb2c
10 changed files with 25 additions and 30 deletions

View File

@@ -52,6 +52,7 @@ AndroidPackageInstallationStep::AndroidPackageInstallationStep(BuildStepList *bs
const QString name = tr("Copy application data");
setDefaultDisplayName(name);
setDisplayName(name);
setWidgetExpandedByDefault(false);
}
bool AndroidPackageInstallationStep::init(QList<const BuildStep *> &earlierSteps)
@@ -126,7 +127,7 @@ bool AndroidPackageInstallationStep::immutable() const
namespace Internal {
AndroidPackageInstallationStepWidget::AndroidPackageInstallationStepWidget(AndroidPackageInstallationStep *step)
: BuildStepConfigWidget(step, false)
: BuildStepConfigWidget(step)
{
setDisplayName(tr("Make install"));
setSummaryText("<b>" + tr("Make install") + "</b>");