forked from qt-creator/qt-creator
ProjectExplorer: Change BuildStepConfigWidget::summaryWidget()
From a virtual function to a normal one backed by a real data member. That's essentially what several re-implementations did, the other ones used a fixed value instead. Change-Id: I61e45f1d4f7f0f80fe2eb1f2729785f37e7bb803 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -63,6 +63,7 @@ AndroidBuildApkInnerWidget::AndroidBuildApkInnerWidget(AndroidBuildApkStep *step
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
setDisplayName(tr("<b>Build Android APK</b>"));
|
||||
setSummaryText(displayName());
|
||||
|
||||
// Target sdk combobox
|
||||
const int minApiSupported = AndroidManager::apiLevelRange().first;
|
||||
@@ -134,11 +135,6 @@ AndroidBuildApkInnerWidget::~AndroidBuildApkInnerWidget()
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
QString AndroidBuildApkInnerWidget::summaryText() const
|
||||
{
|
||||
return displayName();
|
||||
}
|
||||
|
||||
void AndroidBuildApkInnerWidget::setTargetSdk(const QString &sdk)
|
||||
{
|
||||
m_step->setBuildTargetSdk(sdk);
|
||||
@@ -230,6 +226,7 @@ AndroidBuildApkWidget::AndroidBuildApkWidget(AndroidBuildApkStep *step) :
|
||||
m_step(step)
|
||||
{
|
||||
setDisplayName(tr("<b>Build Android APK</b>"));
|
||||
setSummaryText(tr("<b>Build Android APK</b>"));
|
||||
|
||||
m_extraLibraryListModel = new AndroidExtraLibraryListModel(m_step->target(), this);
|
||||
|
||||
@@ -321,10 +318,5 @@ void AndroidBuildApkWidget::checkEnableRemoveButton()
|
||||
m_removeAndroidExtraLibButton->setEnabled(m_androidExtraLibsListView->selectionModel()->hasSelection());
|
||||
}
|
||||
|
||||
QString AndroidBuildApkWidget::summaryText() const
|
||||
{
|
||||
return tr("<b>Build Android APK</b>");
|
||||
}
|
||||
|
||||
} // Internal
|
||||
} // Android
|
||||
|
||||
Reference in New Issue
Block a user