forked from qt-creator/qt-creator
Utils: Fix build with Qt5
Amends 2b286c755b
.
Change-Id: I7f28cb4ac0d5b515df1e46c1f514a0275472d438
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -318,7 +318,7 @@ void InfoBarDisplay::update()
|
||||
auto cb = new QComboBox();
|
||||
for (const InfoBarEntry::ComboInfo &comboInfo : qAsConst(info.m_comboInfo))
|
||||
cb->addItem(comboInfo.displayText, comboInfo.data);
|
||||
connect(cb, &QComboBox::currentIndexChanged, [cb, info]() {
|
||||
connect(cb, QOverload<int>::of(&QComboBox::currentIndexChanged), [cb, info]() {
|
||||
info.m_comboCallBack({cb->currentText(), cb->currentData()});
|
||||
});
|
||||
|
||||
|
@@ -80,3 +80,5 @@ void removeOutdatedKits();
|
||||
} // namespace McuKitManager
|
||||
} // namespace Internal
|
||||
} // namespace McuSupport
|
||||
|
||||
Q_DECLARE_METATYPE(McuSupport::Internal::McuKitManager::UpgradeOption)
|
||||
|
Reference in New Issue
Block a user