| 1 |
import QtQuick 2.4 |
| 2 |
import FlightGear 1.0 |
| 3 |
|
| 4 |
Text { |
| 5 |
signal dismiss(); |
| 6 |
|
| 7 |
readonly property string updateAllLink: "\"launcher:update-all\""; |
| 8 |
readonly property string newName: _notifications.argsForIndex(model.index).newCatalogName |
| 9 |
|
| 10 |
text: qsTr("An updated version of the hangar '%2' was automatically installed. " + |
| 11 |
"Existing aircraft have been marked for update, <a href=%1>click here to update them all</a>").arg(updateAllLink).arg(newName) |
| 12 |
|
| 13 |
wrapMode: Text.WordWrap |
| 14 |
font.pixelSize: Style.subHeadingFontPixelSize |
| 15 |
color: "white" |
| 16 |
|
| 17 |
onLinkActivated: { |
| 18 |
_launcher.requestUpdateAllAircraft(); |
| 19 |
dismiss(); // request our dismissal |
| 20 |
} |
| 21 |
} |