summaryrefslogtreecommitdiffstats
path: root/qml/Configuration.qml
blob: 71171e7b59b010d69a8c251a58b24c832f1c48c2 (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
import QtQuick.Dialogs 1.1

// Configuration summary Page
Rectangle {
    Version {id:version}
    property var title: qsTr("Your configuration")
    width: view.width; height: view.height
    Loader { sourceComponent: slidebackground ;
        anchors.fill: parent}

    Column {
        Rectangle{
            height: 50
            width:1
            color:"transparent"
        }
        ListView {
            id: confList
            width: view.width
            height: view.height -150
            model: ConfList
            delegate: Label {
                text: name
                leftPadding: 50
                textFormat: Text.RichText
                color: "white"
            }
        }
        MButton {
            anchors.horizontalCenter: parent.horizontalCenter
            objectName: "launch"
            onMbuttonClicked: { about.open() }
            buttonText: qsTr("About")
        }
        MessageDialog {
            id: about
            title: qsTr("About Mageiawelcome")
            //: %1 will be replaced with the release number, %2 with author's names
            text: qsTr("Release %1<br />Authors : %2").arg(version.version).arg("Daniel Napora, Papoteur, Antony Baker<br />")
            //: replace with the list of translator's names
            detailedText: qsTr("Translators: English is the source language")
            standardButtons: StandardButton.Close
        }
    }
}