From 914b3a494ef37bf677315b122adc74c557343cab Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 20 Jun 2020 10:03:30 +0200 Subject: Explode pages in qml files --- qml/Updates.qml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 qml/Updates.qml (limited to 'qml/Updates.qml') 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" + } +} -- cgit v1.2.1