diff options
author | Papoteur <papoteur@mageia.org> | 2019-01-21 13:01:21 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2019-01-21 13:01:21 +0100 |
commit | 58c219ace365c508d8cd1bc6dfc1574428e8a82d (patch) | |
tree | 2cbab8df07f862928ca4db638571a9f9a1067f69 /qml | |
parent | ac43b4aa95c29f078b184d68affa3aa5296b0d3f (diff) | |
download | mageiawelcome-58c219ace365c508d8cd1bc6dfc1574428e8a82d.tar mageiawelcome-58c219ace365c508d8cd1bc6dfc1574428e8a82d.tar.gz mageiawelcome-58c219ace365c508d8cd1bc6dfc1574428e8a82d.tar.bz2 mageiawelcome-58c219ace365c508d8cd1bc6dfc1574428e8a82d.tar.xz mageiawelcome-58c219ace365c508d8cd1bc6dfc1574428e8a82d.zip |
Add About dialog with version
Diffstat (limited to 'qml')
-rw-r--r-- | qml/Version.qml | 2 | ||||
-rw-r--r-- | qml/mw-ui.qml | 44 |
2 files changed, 37 insertions, 9 deletions
diff --git a/qml/Version.qml b/qml/Version.qml new file mode 100644 index 0000000..c5356bf --- /dev/null +++ b/qml/Version.qml @@ -0,0 +1,2 @@ +import QtQuick 2.0 +Item { property var version: '1.93';} diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 9851532..ed75495 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -7,6 +7,7 @@ import QtQuick.Controls.Styles 1.4 import QtGraphicalEffects 1 import QtQuick.Window 2 import Qt.labs.settings 1.0 +import QtQuick.Dialogs 1.1 Rectangle { id: box @@ -777,19 +778,44 @@ Rectangle { } // 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} - ListView { - id: confList - anchors.fill: parent - anchors.margins: 50 - model: ConfList - delegate: Label { - text: name - textFormat: Text.RichText - color: "white" + + 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" + } + } + Button { + x: (view.width - width)/2 + text: qsTr("About") + onClicked: about.open() + } + + MessageDialog { + id: about + title: qsTr("About Mageiawelcome") + //: the %1 will be replaced with the user name + text: "Release %1<br />Authors : Daniel Napora, Papoteur, Antony Baker<br />".arg(version.version) + //: replace with the list of translator's names + detailedText: qsTr("Translators: English is the source language") + standardButtons: StandardButton.Close } } } |