| 1 |
|
| 2 |
import QtQuick 2.4 |
| 3 |
import FlightGear.Launcher 1.0 |
| 4 |
import FlightGear 1.0 |
| 5 |
|
| 6 |
ClickableText { |
| 7 |
signal dismiss(); |
| 8 |
|
| 9 |
text: msg.arg(_updates.updateVersion) |
| 10 |
readonly property string msg: (_updates.status == UpdateChecker.MajorUpdate) ? |
| 11 |
qsTr("A new release of FlightGear is available (%1): click for more information") |
| 12 |
: qsTr("Updated version %1 is available: click here to download") |
| 13 |
|
| 14 |
|
| 15 |
wrapMode: Text.WordWrap |
| 16 |
font.pixelSize: Style.subHeadingFontPixelSize |
| 17 |
color: "white" |
| 18 |
|
| 19 |
onClicked: { |
| 20 |
_launcher.launchUrl(_updates.updateUri); |
| 21 |
} |
| 22 |
|
| 23 |
function dismissed() |
| 24 |
{ |
| 25 |
_updates.ignoreUpdate(); |
| 26 |
} |
| 27 |
} |
| 28 |
|