diff options
author | Papoteur <papoteur@mageia.org> | 2020-06-20 10:03:30 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-06-20 10:03:30 +0200 |
commit | 914b3a494ef37bf677315b122adc74c557343cab (patch) | |
tree | 947824eb51d4b5180ceb1751aea18b0668ad9ab4 /qml/Links.qml | |
parent | f23ebca9ad3ced97a0bc3ab0cc3ecaa0d52849f9 (diff) | |
download | mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.gz mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.bz2 mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.tar.xz mageiawelcome-914b3a494ef37bf677315b122adc74c557343cab.zip |
Explode pages in qml files
Diffstat (limited to 'qml/Links.qml')
-rw-r--r-- | qml/Links.qml | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/qml/Links.qml b/qml/Links.qml new file mode 100644 index 0000000..d42d1a5 --- /dev/null +++ b/qml/Links.qml @@ -0,0 +1,86 @@ +import QtQuick 2 +import QtQuick.Controls 1 +import QtQuick.Controls.Styles 1 + +// Links page +Rectangle { + property var title: qsTr("More information") + width: view.width; height: view.height + Loader { sourceComponent: slidebackground ; + anchors.fill: parent} + Column { + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + Grid { + columns: 3 + spacing: view.width * .03 + Label { + horizontalAlignment: TextInput.AlignHCenter + width: view.width * .2 + text: qsTr("Documentation") + wrapMode: Text.WordWrap + font.bold: true + color: "white" + } + Label { + horizontalAlignment: TextInput.AlignHCenter + width: view.width * .2 + text: qsTr("Support") + wrapMode: Text.WordWrap + font.bold: true + color: "white" + } + Label { + horizontalAlignment: TextInput.AlignHCenter + width: view.width * .2 + text: qsTr("Community") + wrapMode: Text.WordWrap + font.bold: true + color: "white" + } + Repeater{ + model: [{'name': qsTr("Release notes"), 'url': + //: Translate only if the link is to a specific page for your language + qsTr("https://wiki.mageia.org/en/Mageia_7_Release_Notes")}, + {'name': qsTr("Forums"),'url': + //: Translate only if the link is to a specific page for your language + qsTr("https://forums.mageia.org/en/")}, + {'name': qsTr("Community Center"),'url': "https://www.mageia.org/community/"}, + {'name': qsTr("Errata"), 'url': + //: Translate only if the link is to a specific page for your language + qsTr("https://wiki.mageia.org/en/Mageia_7_Errata")}, + {'name': qsTr("Wiki"), 'url': + //: Translate only if the link is to a specific page for your language + qsTr("https://wiki.mageia.org/en/Documentation")}, + {'name': qsTr("Contribute"),'url': "https://www.mageia.org/contribute/"}, + {'name': qsTr("Newcomers Howto"),'url': + //: Translate only if the link is to a specific page for your language + qsTr("https://wiki.mageia.org/en/Newcomers_start_here")}, + {'name': qsTr("Chat Room"), + //: Translate only if the link is to a specific page for your language + 'url': qsTr("irc://irc.freenode.net/#mageia")}, + {'name': qsTr("Donations"),'url': "https://www.mageia.org/donate/"}, + {'name': qsTr("Documentation"),'url': "https://www.mageia.org/doc/"}, + {'name': qsTr("Bugs tracker"),'url': "https://bugs.mageia.org/"}, + {'name': qsTr("Join us!"),'url': "https://identity.mageia.org/"}] + delegate: Button { + width: view.width * .2 + objectName: "link" + onClicked: { link.weblink(modelData.url)} + style: ButtonStyle { + label: Label { + text: modelData.name + horizontalAlignment: TextInput.AlignHCenter + color: "black" + width: parent.width + wrapMode: Text.WordWrap } + background: Rectangle { + color: "lightgrey" + radius: 5 + } + } + } + } + } + } + } |