From 914b3a494ef37bf677315b122adc74c557343cab Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 20 Jun 2020 10:03:30 +0200 Subject: Explode pages in qml files --- qml/Mcc.qml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 qml/Mcc.qml (limited to 'qml/Mcc.qml') diff --git a/qml/Mcc.qml b/qml/Mcc.qml new file mode 100644 index 0000000..82e7554 --- /dev/null +++ b/qml/Mcc.qml @@ -0,0 +1,58 @@ +import QtQuick 2 +import QtQuick.Controls 1 + +// MCC Page +Rectangle { + //: The button in the buttons bar, shortcut for Mageia Control Center + property var title: qsTr("MCC") + width: view.width; height: view.height + Loader { sourceComponent: slidebackground ; + anchors.fill: parent} + + Column { + x: 10; y: 30 + spacing: 10 + Label { + text: qsTr("Mageia Control Center (aka drakconf) is a set of tools to help you configure your system.") + width: view.width * 0.9 + padding: 10 + wrapMode: Text.WordWrap + textFormat: Text.RichText + color: "white" + } + Label { + padding: 5 + anchors.horizontalCenter: parent.horizontalCenter + text: ""; + wrapMode: Text.WordWrap;textFormat: Text.RichText + color: "white" + } + + MButton { + anchors.horizontalCenter: parent.horizontalCenter + objectName: "launch" + onMbuttonClicked: { launch.command(["drakconf",])} + buttonText: qsTr("Mageia Control Center")+" *" + } + MButton { + anchors.horizontalCenter: parent.horizontalCenter + objectName: "link" + onMbuttonClicked: { link.weblink("https://www.mageia.org/doc")} + buttonText: qsTr("MCC documentation") + } + } + Label { + anchors {top: parent.bottom; topMargin: 3; horizontalCenter: parent.left; horizontalCenterOffset: parent.width * .4 } + text: qsTr("(*) Administrator password is needed") + wrapMode: Text.WordWrap + font.italic: true + color: "white" + } +} -- cgit v1.2.1