Android: Remove one more buildTargetSdk() finding roundtrip

... and avoid the implicit used of Target::activeBuildConfiguration()
there,

Change-Id: I08ec72be601ef7b854b5aec5784b0636c738faa4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2020-02-13 13:12:41 +01:00
parent 4bd316ab62
commit 7ba45c66ff

View File

@@ -98,7 +98,7 @@ QWidget *AndroidBuildApkWidget::createApplicationGroup()
auto targetSDKComboBox = new QComboBox(group); auto targetSDKComboBox = new QComboBox(group);
targetSDKComboBox->addItems(targets); targetSDKComboBox->addItems(targets);
targetSDKComboBox->setCurrentIndex(targets.indexOf(AndroidManager::buildTargetSDK(step()->target()))); targetSDKComboBox->setCurrentIndex(targets.indexOf(m_step->buildTargetSdk()));
const auto cbActivated = QOverload<int>::of(&QComboBox::activated); const auto cbActivated = QOverload<int>::of(&QComboBox::activated);
connect(targetSDKComboBox, cbActivated, this, [this, targetSDKComboBox](int idx) { connect(targetSDKComboBox, cbActivated, this, [this, targetSDKComboBox](int idx) {