48 lines
1.3 KiB
QML
48 lines
1.3 KiB
QML
import QtQuick 2.2
|
|
import FlightGear.Launcher 1.0 as FG
|
|
import "."
|
|
|
|
ListHeaderBox {
|
|
id: root
|
|
|
|
contents: [
|
|
Text {
|
|
id: updateAllText
|
|
anchors {
|
|
left: parent.left
|
|
right: updateAllButton.left
|
|
margins: Style.margin
|
|
verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
text: qsTr("%1 aircraft have updates available - download and install them now?").
|
|
arg( _launcher.baseAircraftModel.aircraftNeedingUpdated);
|
|
wrapMode: Text.WordWrap
|
|
},
|
|
|
|
Button {
|
|
id: updateAllButton
|
|
text: qsTr("Update all")
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.right: notNowButton.left
|
|
anchors.rightMargin: Style.margin
|
|
|
|
onClicked: {
|
|
_launcher.requestUpdateAllAircraft();
|
|
_launcher.baseAircraftModel.showUpdateAll = false
|
|
}
|
|
},
|
|
|
|
Button {
|
|
id: notNowButton
|
|
text: qsTr("Not now")
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Style.margin
|
|
|
|
onClicked: {
|
|
_launcher.baseAircraftModel.showUpdateAll = false
|
|
}
|
|
}
|
|
]
|
|
}
|