summaryrefslogtreecommitdiffstats
path: root/qml/Updates.qml
blob: fb0fec320fd668e32a10c5ffa770e8deea5cdeab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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"
    }
}