summaryrefslogtreecommitdiffstats
path: root/qml/mw-ui.qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-01-21 13:01:21 +0100
committerPapoteur <papoteur@mageia.org>2019-01-21 13:01:21 +0100
commit58c219ace365c508d8cd1bc6dfc1574428e8a82d (patch)
tree2cbab8df07f862928ca4db638571a9f9a1067f69 /qml/mw-ui.qml
parentac43b4aa95c29f078b184d68affa3aa5296b0d3f (diff)
downloadmageiawelcome-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/mw-ui.qml')
-rw-r--r--qml/mw-ui.qml44
1 files changed, 35 insertions, 9 deletions
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
}
}
}