0440f498f7
Those rectangles were there to serve two purposes: - Giving the dialog the correct background color; - Avoiding problems with QmlDialog's default property `content`. However, these both things are now handled by StyledDialogView, making the rectangles unnecessary.
130 lines
3.8 KiB
QML
130 lines
3.8 KiB
QML
/*
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
* MuseScore-CLA-applies
|
|
*
|
|
* MuseScore
|
|
* Music Composition & Notation
|
|
*
|
|
* Copyright (C) 2021 MuseScore BVBA and others
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 3 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import MuseScore.Ui 1.0
|
|
import MuseScore.UiComponents 1.0
|
|
import MuseScore.AppShell 1.0
|
|
|
|
StyledDialogView {
|
|
id: root
|
|
|
|
title: qsTrc("appshell", "About MusicXML")
|
|
|
|
contentHeight: 312
|
|
contentWidth: 456
|
|
|
|
AboutModel {
|
|
id: aboutModel
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 30
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
Layout.topMargin: 36
|
|
Layout.leftMargin: 40
|
|
Layout.rightMargin: 40
|
|
|
|
spacing: 24
|
|
|
|
StyledTextLabel {
|
|
Layout.fillWidth: true
|
|
|
|
text: qsTrc("appshell", "MusicXML is an open file format for exchanging digital sheet music, supported by many applications.")
|
|
font: ui.theme.bodyBoldFont
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Column {
|
|
Layout.fillWidth: true
|
|
spacing: 12
|
|
|
|
StyledTextLabel {
|
|
width: parent.width
|
|
|
|
text: qsTrc("appshell", "Copyright 2004 - 2017 the Contributors to the MusicXML Specification, published by the W3C Music Notation Community Group under the W3C Community Final Specification Agreement:")
|
|
wrapMode: Text.WordWrap
|
|
maximumLineCount: 3
|
|
}
|
|
|
|
StyledTextLabel {
|
|
width: parent.width
|
|
|
|
text: {
|
|
var license = "<a href='%1'>%2</a>"
|
|
var musicXMLLicenseUrl = aboutModel.musicXMLLicenseUrl()
|
|
return license.arg(musicXMLLicenseUrl.url).arg(musicXMLLicenseUrl.displayName)
|
|
}
|
|
wrapMode: Text.WordWrap
|
|
maximumLineCount: 3
|
|
}
|
|
}
|
|
|
|
Column {
|
|
Layout.fillWidth: true
|
|
spacing: 12
|
|
|
|
StyledTextLabel {
|
|
width: parent.width
|
|
text: qsTrc("appshell", "A human-readable summary is available:")
|
|
wrapMode: Text.WordWrap
|
|
maximumLineCount: 3
|
|
}
|
|
|
|
StyledTextLabel {
|
|
width: parent.width
|
|
|
|
text: {
|
|
var license = "<a href='%1'>%2</a>"
|
|
var musicXMLLicenseDeedUrl = aboutModel.musicXMLLicenseDeedUrl()
|
|
return license.arg(musicXMLLicenseDeedUrl.url).arg(musicXMLLicenseDeedUrl.displayName)
|
|
}
|
|
wrapMode: Text.WordWrap
|
|
maximumLineCount: 3
|
|
}
|
|
}
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.alignment: Qt.AlignRight
|
|
Layout.rightMargin: 16
|
|
Layout.bottomMargin: 16
|
|
|
|
spacing: 12
|
|
|
|
FlatButton {
|
|
text: qsTrc("global", "OK")
|
|
|
|
onClicked: {
|
|
root.hide()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|