summaryrefslogtreecommitdiffstats
path: root/qml/Configuration.qml
blob: b36f28dd0db26174b234e9b50e0f80becdbb0b51 (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
48
49
50
51
52
53
54
import QtQuick 2
import QtQuick.Controls 1
import QtQuick.Dialogs 1.1

// Configuration summary Page
Rectangle {
    LayoutMirroring.enabled: (direction == "LTR" ? false : true)
    LayoutMirroring.childrenInherit: true
    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
            spacing: 3
            model: ConfList
            delegate: Row {
                width: view.width
                Label {
                    text: name
                    leftPadding: 50
                    rightPadding: 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
        }
    }
}