mirror of
https://github.com/QuasarApp/Credits.git
synced 2025-04-26 09:44:38 +00:00
change list viewer and credits
This commit is contained in:
parent
eb17693759
commit
abf015424b
@ -12,15 +12,12 @@ ApplicationWindow {
|
||||
|
||||
Credits {
|
||||
state: "about"
|
||||
developersList: [
|
||||
{
|
||||
section: qsTr("## QuasarApp Core"),
|
||||
sectionList: [
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
}
|
||||
listCustomInfo: [
|
||||
"## QuasarApp Developers:",
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
|
||||
}
|
||||
Credits {
|
||||
state: "minimal"
|
||||
@ -46,14 +43,10 @@ ApplicationWindow {
|
||||
|
||||
Credits {
|
||||
state: "full"
|
||||
developersList: [
|
||||
{
|
||||
section: qsTr("## QuasarApp Core"),
|
||||
sectionList: [
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
}
|
||||
listCustomInfo: [
|
||||
"## QuasarApp Core",
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,24 +10,14 @@ Page {
|
||||
property bool showHeader: true
|
||||
property bool showPatreon: true
|
||||
property bool showBitcoin: true
|
||||
property bool showPatrons: (showQR || showPatreon || showBitcoin) && patronsList.length
|
||||
property bool showPatrons: (showQR || showPatreon || showBitcoin) && listCustomInfo.length
|
||||
|
||||
// developersa and patronsList lists must be contain structure with a section amd sectionList fields.
|
||||
// The section it is section name
|
||||
// the sectionList it is list of section members.
|
||||
property string iconLogo: ""
|
||||
property int iconWidth: 250
|
||||
property var developersList: []
|
||||
property var versionList: []
|
||||
property var patronsList: [
|
||||
{
|
||||
section: qsTr("## Silver Membership Patrons:"),
|
||||
sectionList: [
|
||||
"* Rustem Husnutdinov",
|
||||
"* Semih Ufuk Güler"
|
||||
]
|
||||
}
|
||||
]
|
||||
property var listCustomInfo: []
|
||||
|
||||
header: Image {
|
||||
fillMode: Image.PreserveAspectFit
|
||||
@ -116,54 +106,12 @@ Page {
|
||||
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("# Our patrons list:")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
visible: showPatrons
|
||||
|
||||
|
||||
}
|
||||
|
||||
ListViewer {
|
||||
model: patronsList
|
||||
model: listCustomInfo
|
||||
|
||||
visible: showPatrons
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("# Developers list:")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
|
||||
visible: developersList.length
|
||||
|
||||
}
|
||||
|
||||
ListViewer {
|
||||
model: developersList
|
||||
|
||||
visible: developersList.length
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("# Version list:")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
|
||||
visible: versionList.length
|
||||
|
||||
}
|
||||
|
||||
ListViewer {
|
||||
model: versionList
|
||||
|
||||
visible: versionList.length
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
@ -223,7 +171,6 @@ Page {
|
||||
showPatreon: false
|
||||
showBitcoin: false
|
||||
showPatrons: true
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
@ -235,7 +182,7 @@ Page {
|
||||
showHeader: false
|
||||
showPatreon: false
|
||||
showBitcoin: false
|
||||
patronsList: []
|
||||
listCustomInfo: []
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -15,29 +15,22 @@ import QtQuick.Layouts 1.15
|
||||
// ]
|
||||
// }
|
||||
//]
|
||||
Repeater {
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
ColumnLayout {
|
||||
property var model: []
|
||||
Layout.fillWidth: true
|
||||
|
||||
Repeater {
|
||||
model: model
|
||||
|
||||
Label {
|
||||
text: modelData.section
|
||||
text: modelData
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: modelData.sectionList
|
||||
|
||||
Label {
|
||||
text: modelData
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user