Debian Codegraph @

src/GUI/qml/DownloadsInDocumentsWarning.qml

raw
1 import QtQuick 2.4
2 import FlightGear 1.0
3
4 Text {
5 signal dismiss();
6
7 readonly property string oldLocationURI: "\"" + _notifications.argsForIndex(model.index).oldLocation + "\""
8 readonly property string newLocationURI: "\"" + _notifications.argsForIndex(model.index).newLocation + "\""
9
10 text: qsTr("<p>FlightGear previously downloaded aircraft and scenery to a folder within your 'Documents' folder. " +
11 "This can cause problems with some security features of Windows, so a new location is now recommended.</p><br/>" +
12 "<p>To keep your existing aircraft and scenery downloads, please move the files from " +
13 "<u><a href=%1>the old location</a></u> to <u><a href=%2>the new location</a></u></p>").arg(oldLocationURI).arg(newLocationURI)
14
15 wrapMode: Text.WordWrap
16 font.pixelSize: Style.subHeadingFontPixelSize
17 color: Style.themeContrastTextColor
18 linkColor: Style.themeContrastLinkColor
19
20 textFormat: Text.StyledText
21
22 onLinkActivated: {
23 console.log("Activated:" + link);
24 Qt.openUrlExternally(link); // will open Windows Explorer since it's a file:/// URI
25 // don't dismiss, user needs to click both links :)
26 }
27 }