forked from qt-creator/qt-creator
Fix a build with Qt 6
In Qt 6 implicit conversion between QFuture and other types is forbidden. Make it explicit instead. See ff0ba7e2d7b91fd5809cb314935a1ca1a436f6c9. Change-Id: Ie42e6b9b5047ba5eeec9f63fd03179e73f95314d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -62,14 +62,14 @@ CreateSimulatorDialog::CreateSimulatorDialog(QWidget *parent) :
|
||||
});
|
||||
|
||||
m_futureSync.setCancelOnWait(true);
|
||||
m_futureSync.addFuture(Utils::onResultReady(SimulatorControl::updateDeviceTypes(), this,
|
||||
&CreateSimulatorDialog::populateDeviceTypes));
|
||||
m_futureSync.addFuture(QFuture<void>(Utils::onResultReady(SimulatorControl::updateDeviceTypes(), this,
|
||||
&CreateSimulatorDialog::populateDeviceTypes)));
|
||||
|
||||
QFuture<QList<RuntimeInfo>> runtimesfuture = SimulatorControl::updateRuntimes();
|
||||
Utils::onResultReady(runtimesfuture, this, [this](const QList<RuntimeInfo> &runtimes) {
|
||||
m_runtimes = runtimes;
|
||||
});
|
||||
m_futureSync.addFuture(runtimesfuture);
|
||||
m_futureSync.addFuture(QFuture<void>(runtimesfuture));
|
||||
populateRuntimes(DeviceTypeInfo());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user