ProjectExplorer: Make BuildStepConfigWidget::displayName a value

Use BuildStep::displayName() as default.

This probably could be the only possibility, but currently there
are some discrepancies that are kept in this patch to make
the patch mechanical.

Change-Id: I2a1e5c2ff37ad95e25309eb16e07099e42191f60
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-10-12 17:52:09 +02:00
parent 5fc1b5d8e7
commit 683e7aa6cf
35 changed files with 24 additions and 110 deletions

View File

@@ -45,6 +45,8 @@ NimCompilerBuildStepConfigWidget::NimCompilerBuildStepConfigWidget(NimCompilerBu
{
m_ui->setupUi(this);
setDisplayName(tr(Constants::C_NIMCOMPILERBUILDSTEPWIDGET_DISPLAY));
// Connect the project signals
auto project = static_cast<NimProject *>(m_buildStep->project());
connect(project, &NimProject::fileListChanged,
@@ -72,11 +74,6 @@ QString NimCompilerBuildStepConfigWidget::summaryText() const
return tr(Constants::C_NIMCOMPILERBUILDSTEPWIDGET_SUMMARY);
}
QString NimCompilerBuildStepConfigWidget::displayName() const
{
return tr(Constants::C_NIMCOMPILERBUILDSTEPWIDGET_DISPLAY);
}
void NimCompilerBuildStepConfigWidget::onTargetChanged(int index)
{
Q_UNUSED(index);