mirror of
https://github.com/QuasarApp/Credits.git
synced 2025-04-26 09:44:38 +00:00
added suppor developers only mode
This commit is contained in:
parent
cfe0527c59
commit
b15bc79bf8
@ -4,9 +4,65 @@ import QuasarAppCreditsModule 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
|
||||
Credits {
|
||||
anchors.fill: parent;
|
||||
state: "minimal"
|
||||
SwipeView {
|
||||
id: view
|
||||
|
||||
currentIndex: 1
|
||||
anchors.fill: parent
|
||||
|
||||
Credits {
|
||||
state: "about"
|
||||
developersList: [
|
||||
{
|
||||
section: qsTr("## QuasarApp Core"),
|
||||
sectionList: [
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Credits {
|
||||
state: "minimal"
|
||||
}
|
||||
Credits {
|
||||
state: "bitcoinSimple"
|
||||
}
|
||||
|
||||
Credits {
|
||||
state: "patreon"
|
||||
}
|
||||
|
||||
Credits {
|
||||
state: "bitcoin"
|
||||
}
|
||||
|
||||
Credits {
|
||||
state: "full"
|
||||
}
|
||||
|
||||
Credits {
|
||||
state: "full"
|
||||
developersList: [
|
||||
{
|
||||
section: qsTr("## QuasarApp Core"),
|
||||
sectionList: [
|
||||
"* Oleg-Disigner",
|
||||
"* Yankovich Andrei"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
PageIndicator {
|
||||
id: indicator
|
||||
|
||||
count: view.count
|
||||
currentIndex: view.currentIndex
|
||||
|
||||
anchors.bottom: view.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
||||
width: 470
|
||||
|
@ -16,5 +16,6 @@
|
||||
<file>credits_languages/de.qm</file>
|
||||
<file>credits_languages/zh.qm</file>
|
||||
<file>credits_languages/es.qm</file>
|
||||
<file>QuasarAppCreditsModule/ListViewer.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -10,6 +10,21 @@ Page {
|
||||
property bool showHeader: true
|
||||
property bool showPatreon: true
|
||||
property bool showBitcoin: true
|
||||
property bool showPatrons: (showQR || showPatreon || showBitcoin) && patronsList.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 var developersList: []
|
||||
property var patronsList: [
|
||||
{
|
||||
section: qsTr("## Silver Membership Patrons:"),
|
||||
sectionList: [
|
||||
"* Rustem Husnutdinov",
|
||||
"* Semih Ufuk Güler"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
header: Image {
|
||||
fillMode: Image.PreserveAspectFit
|
||||
@ -90,33 +105,33 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
visible: showPatrons
|
||||
|
||||
|
||||
}
|
||||
|
||||
ListViewer {
|
||||
model: patronsList
|
||||
|
||||
visible: showPatrons
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("## Silver Membership Patrons:")
|
||||
text: qsTr("# Developers list:")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("* Rustem Husnutdinov")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
visible: developersList.length
|
||||
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("* Semih Ufuk Güler")
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
ListViewer {
|
||||
model: developersList
|
||||
|
||||
visible: developersList.length
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
@ -175,6 +190,20 @@ Page {
|
||||
showHeader: true
|
||||
showPatreon: false
|
||||
showBitcoin: false
|
||||
showPatrons: true
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
State {
|
||||
name: "about"
|
||||
PropertyChanges {
|
||||
target: root
|
||||
showQR: false
|
||||
showHeader: true
|
||||
showPatreon: false
|
||||
showBitcoin: false
|
||||
patronsList: []
|
||||
|
||||
}
|
||||
}
|
||||
|
48
src/Library/src/QuasarAppCreditsModule/ListViewer.qml
Normal file
48
src/Library/src/QuasarAppCreditsModule/ListViewer.qml
Normal file
@ -0,0 +1,48 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
|
||||
// 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.
|
||||
// Example of the structure:
|
||||
//[
|
||||
// {
|
||||
// section: qsTr("## Silver Membership Patrons:"),
|
||||
// sectionList: [
|
||||
// "* Rustem Husnutdinov",
|
||||
// "* Semih Ufuk Güler"
|
||||
// ]
|
||||
// }
|
||||
//]
|
||||
Repeater {
|
||||
model: patronsList
|
||||
|
||||
visible: showPatrons
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Label {
|
||||
text: modelData.section
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
visible: showPatrons
|
||||
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: modelData.sectionList
|
||||
|
||||
Label {
|
||||
text: modelData
|
||||
Layout.fillWidth: true
|
||||
|
||||
textFormat: TextEdit.MarkdownText
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -29,11 +29,15 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<translation>* Semih Ufuk Güler</translation>
|
||||
<translation type="vanished">* Semih Ufuk Güler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -29,10 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
@ -29,11 +29,15 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<translation>* Semih Ufuk Güler</translation>
|
||||
<translation type="vanished">* Semih Ufuk Güler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -29,11 +29,15 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<translation>* Semih Ufuk Güler</translation>
|
||||
<translation type="vanished">* Semih Ufuk Güler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -29,10 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
@ -29,11 +29,15 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<translation>* Semih Ufuk Güler</translation>
|
||||
<translation type="vanished">* Semih Ufuk Güler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -29,10 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
@ -29,10 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
@ -29,10 +29,10 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
@ -29,11 +29,15 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>* Rustem Husnutdinov</source>
|
||||
<translation>* Rustem Husnutdinov</translation>
|
||||
<translation type="vanished">* Rustem Husnutdinov</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>* Semih Ufuk Güler</source>
|
||||
<translation>* Semih Ufuk Güler</translation>
|
||||
<translation type="vanished">* Semih Ufuk Güler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source># Developers list:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
Loading…
x
Reference in New Issue
Block a user