summaryrefslogtreecommitdiffstats
path: root/qml/Updates.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-06-20 10:03:30 +0200
committerPapoteur <papoteur@mageia.org>2020-06-20 10:03:30 +0200
commit914b3a494ef37bf677315b122adc74c557343cab (patch)
tree947824eb51d4b5180ceb1751aea18b0668ad9ab4 /qml/Updates.qml
parentf23ebca9ad3ced97a0bc3ab0cc3ecaa0d52849f9 (diff)
downloadmageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar
mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.gz
mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.bz2
mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.xz
mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.zip
Explode pages in qml files
Diffstat (limited to 'qml/Updates.qml')
-rw-r--r--qml/Updates.qml47
1 files changed, 47 insertions, 0 deletions
diff --git a/qml/Updates.qml b/qml/Updates.qml
new file mode 100644
index 0000000..fb0fec3
--- /dev/null
+++ b/qml/Updates.qml
@@ -0,0 +1,47 @@
+import QtQuick 2
+import QtQuick.Controls 1
+
+// Update page
+Rectangle {
+ property var title: qsTr("Update")
+ width: view.width; height: view.height
+ Loader { sourceComponent: slidebackground ;
+ anchors.fill: parent}
+ Column {
+ spacing: 10
+ Label { text: qsTr("How Mageia manages updates"); font.bold: true;
+ topPadding: 30 ; leftPadding: 20
+ color: "white"}
+ Label {
+ width: slideshow.width - 40
+ padding: 20
+ text: qsTr("Mageia provides software which may be updated in order to fix bugs or security issues. It is highly recommended that you update your system regularly. \
+An Update icon will appear in your task bar when new updates are available. To run the updates, just click on the icon below and give your user password - or use the Software Manager (root password). \
+This is a background process and you will be able to use your computer normally during the updates."+"\n");
+ wrapMode: Text.WordWrap
+ color: "white"
+ }
+
+ MButton {
+ anchors.horizontalCenter: parent.horizontalCenter
+ objectName: "launch"
+ onMbuttonClicked: { launch.command(["drakrpm-update",])}
+ buttonText: qsTr("Check system updates")+" *"
+ }
+ MButton {
+ anchors.horizontalCenter: parent.horizontalCenter
+ objectName: "link"
+ //: (en) indicates that the content of the link is in English
+ onMbuttonClicked: { link.weblink("https://advisories.mageia.org/")}
+ buttonText: qsTr("Advisories of updates (en)")
+ }
+
+ }
+ Label {
+ anchors {top: parent.bottom; topMargin: 3; horizontalCenter: parent.left; horizontalCenterOffset: parent.width * .4 }
+ text: qsTr("(*) User password is needed")
+ wrapMode: Text.WordWrap
+ font.italic: true
+ color: "white"
+ }
+}