From 58c219ace365c508d8cd1bc6dfc1574428e8a82d Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 21 Jan 2019 13:01:21 +0100 Subject: Add About dialog with version --- qml/mw-ui.qml | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) (limited to 'qml/mw-ui.qml') 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
Authors : Daniel Napora, Papoteur, Antony Baker
".arg(version.version) + //: replace with the list of translator's names + detailedText: qsTr("Translators: English is the source language") + standardButtons: StandardButton.Close } } } -- cgit v1.2.1