mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Fixed most Qt 5.14 deprecation warnings
This commit is contained in:
@@ -156,8 +156,8 @@ namespace BlackGui
|
||||
const QFileSystemModel *sourceModel = qobject_cast<QFileSystemModel *>(ui->tv_Source->model());
|
||||
if (!sourceModel) { return; }
|
||||
|
||||
QStringList select = comp.missingInTarget.toList();
|
||||
select.append(comp.newerInSource.toList());
|
||||
QStringList select = comp.missingInTarget.values();
|
||||
select.append(comp.newerInSource.values());
|
||||
for (const QString &file : as_const(comp.missingInTarget))
|
||||
{
|
||||
const QModelIndex index = sourceModel->index(file);
|
||||
|
||||
@@ -1068,7 +1068,7 @@ namespace BlackGui
|
||||
void CFlightPlanComponent::initCompleters()
|
||||
{
|
||||
if (!sGui || !sGui->hasWebDataServices()) { return; }
|
||||
const QStringList aircraft(sGui->getWebDataServices()->getAircraftIcaoCodes().allDesignators().toList());
|
||||
const QStringList aircraft(sGui->getWebDataServices()->getAircraftIcaoCodes().allDesignators().values());
|
||||
QCompleter *aircraftCompleter = new QCompleter(aircraft, this);
|
||||
aircraftCompleter->setMaxVisibleItems(10);
|
||||
aircraftCompleter->popup()->setMinimumWidth(75);
|
||||
|
||||
Reference in New Issue
Block a user