Warning, /education/minuet/src/app/qml/AboutDialog.qml is written in an unsupported language. File is not indexed.
0001 /**************************************************************************** 0002 ** 0003 ** Copyright (C) 2016 by Sandro S. Andrade <sandroandrade@kde.org> 0004 ** 0005 ** This program is free software; you can redistribute it and/or 0006 ** modify it under the terms of the GNU General Public License as 0007 ** published by the Free Software Foundation; either version 2 of 0008 ** the License or (at your option) version 3 or any later version 0009 ** accepted by the membership of KDE e.V. (or its successor approved 0010 ** by the membership of KDE e.V.), which shall act as a proxy 0011 ** defined in Section 14 of version 3 of the license. 0012 ** 0013 ** This program is distributed in the hope that it will be useful, 0014 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 ** GNU General Public License for more details. 0017 ** 0018 ** You should have received a copy of the GNU General Public License 0019 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 0020 ** 0021 ****************************************************************************/ 0022 0023 import QtQuick 2.7 0024 import QtQuick.Controls 2.0 0025 0026 Popup { 0027 id: aboutDialog 0028 0029 modal: true 0030 focus: true 0031 x: (applicationWindow.width - width) / 2 0032 y: applicationWindow.height / 6 0033 width: Math.min(applicationWindow.width, applicationWindow.height) * 0.9 0034 contentHeight: aboutColumn.height 0035 0036 Column { 0037 id: aboutColumn 0038 0039 spacing: 15 0040 0041 Image { 0042 id: icon 0043 0044 source: "qrc:/minuet.png" 0045 fillMode: Image.PreserveAspectFit 0046 anchors.horizontalCenter: parent.horizontalCenter 0047 sourceSize { width: 60; height: 60 } 0048 width: 60; height: 60 0049 0050 MouseArea { 0051 anchors.fill: parent 0052 onClicked: Qt.openUrlExternally("https://www.kde.org/applications/education/minuet/") 0053 } 0054 Label { 0055 anchors { horizontalCenter: parent.horizontalCenter; top: icon.bottom } 0056 text: "Minuet v0.3.70" 0057 } 0058 } 0059 0060 Item { width: aboutDialog.availableWidth; height: 20 } 0061 0062 Component { 0063 id: aboutLabel 0064 0065 Label { 0066 id: label 0067 width: aboutDialog.availableWidth 0068 wrapMode: Label.WordWrap 0069 onLinkActivated: Qt.openUrlExternally(link) 0070 font.pixelSize: 13 0071 } 0072 } 0073 0074 Loader { 0075 sourceComponent: aboutLabel 0076 onLoaded: item.text = "Minuet is a <a href='https://kde.org'>KDE</a> application for music education." 0077 } 0078 0079 Loader { 0080 sourceComponent: aboutLabel 0081 onLoaded: item.text = "In case you want to learn more about Minuet, you can find more information " + 0082 "<a href='https://www.kde.org/applications/education/minuet/'>in the official site</a>.<br>" + 0083 "<br>Please use <a href='https://bugs.kde.org'>our bug tracker</a> to report bugs." 0084 } 0085 0086 Loader { 0087 sourceComponent: aboutLabel 0088 onLoaded: item.text = "Developers:<br>Sandro Andrade <<a href='mailto:sandroandrade@kde.org'>sandroandrade@kde.org</a>>"+ 0089 "<br>Ayush Shah <<a href='mailto:1595ayush@gmail.com'>1595ayush@gmail.com</a>>" 0090 } 0091 0092 Loader { 0093 sourceComponent: aboutLabel 0094 onLoaded: item.text = "Icon Designer:<br>Alessandro Longo <<a href='mailto:alessandro.longo@kdemail.net'>alessandro.longo@kdemail.net</a>>" 0095 } 0096 } 0097 }