Debian Codegraph @

src/GUI/qml/UpdateAllPanel.qml

raw
1 import QtQuick 2.2
2 import FlightGear.Launcher 1.0 as FG
3 import FlightGear 1.0
4
5 ListHeaderBox {
6 id: root
7
8 contents: [
9 StyledText {
10 id: updateAllText
11 anchors {
12 left: parent.left
13 right: updateAllButton.left
14 margins: Style.margin
15 verticalCenter: parent.verticalCenter
16 }
17
18 text: qsTr("%1 aircraft have updates available - download and install them now?").
19 arg(_launcher.aircraftWithUpdatesModel.count)
20 wrapMode: Text.WordWrap
21 },
22
23 Button {
24 id: updateAllButton
25 text: qsTr("Update all")
26 anchors.verticalCenter: parent.verticalCenter
27 anchors.right: parent.right
28 anchors.rightMargin: Style.margin
29
30 onClicked: {
31 _launcher.requestUpdateAllAircraft();
32 }
33 }
34 ]
35 }