1
0
Fork 0

Launcher: fix some warnings from QML

This commit is contained in:
James Turner 2017-12-09 09:46:14 +00:00
parent 58fa9fcaa7
commit 88940eb6bc
3 changed files with 21 additions and 7 deletions

View file

@ -135,14 +135,21 @@ Rectangle {
text: qsTr("Ratings:")
}
AircraftRating {
title: qsTr("Flight model")
value: aircraft.ratings[0]
Binding on value {
when: aircraft.ratings != undefined
value: aircraft.ratings[0]
}
}
AircraftRating {
title: qsTr("Systems")
value: aircraft.ratings[1]
Binding on value {
when: aircraft.ratings != undefined
value: aircraft.ratings[1]
}
}
Item {
@ -152,12 +159,18 @@ Rectangle {
AircraftRating {
title: qsTr("Cockpit")
value: aircraft.ratings[2]
Binding on value {
when: aircraft.ratings != undefined
value: aircraft.ratings[2]
}
}
AircraftRating {
title: qsTr("Exterior")
value: aircraft.ratings[3]
Binding on value {
when: aircraft.ratings != undefined
value: aircraft.ratings[3]
}
}
}

View file

@ -120,7 +120,8 @@ public:
PackageInstalled,
PackageUpdateAvailable,
PackageQueued,
PackageDownloading
PackageDownloading,
NotPackaged
};
Q_ENUMS(PackageStatus)

View file

@ -271,7 +271,7 @@ QVariant QmlAircraftInfo::status() const
return packageAircraftStatus(_package);
}
return {};
return LocalAircraftCache::AircraftOk;
}
QString QmlAircraftInfo::minimumFGVersion() const
@ -401,7 +401,7 @@ QVariant QmlAircraftInfo::installStatus() const
}
}
return {};
return LocalAircraftCache::NotPackaged;
}
PackageRef QmlAircraftInfo::packageRef() const