4
0
mirror of https://github.com/QuasarApp/Credits.git synced 2025-05-01 12:09:45 +00:00

fix lstviewer

This commit is contained in:
IgorekLoschinin 2021-10-19 22:35:47 +03:00
parent abf015424b
commit 00490f9129
2 changed files with 4 additions and 5 deletions
src/Library/src/QuasarAppCreditsModule

@ -10,7 +10,7 @@ Page {
property bool showHeader: true property bool showHeader: true
property bool showPatreon: true property bool showPatreon: true
property bool showBitcoin: true property bool showBitcoin: true
property bool showPatrons: (showQR || showPatreon || showBitcoin) && listCustomInfo.length property bool showPatrons: (showQR || showPatreon || showBitcoin)
// developersa and patronsList lists must be contain structure with a section amd sectionList fields. // developersa and patronsList lists must be contain structure with a section amd sectionList fields.
// The section it is section name // The section it is section name
@ -109,7 +109,7 @@ Page {
ListViewer { ListViewer {
model: listCustomInfo model: listCustomInfo
visible: showPatrons visible: listCustomInfo.length
} }
} }
@ -182,8 +182,6 @@ Page {
showHeader: false showHeader: false
showPatreon: false showPatreon: false
showBitcoin: false showBitcoin: false
listCustomInfo: []
} }
} }
] ]

@ -17,11 +17,12 @@ import QtQuick.Layouts 1.15
//] //]
ColumnLayout { ColumnLayout {
id: root
property var model: [] property var model: []
Layout.fillWidth: true Layout.fillWidth: true
Repeater { Repeater {
model: model model: root.model
Label { Label {
text: modelData text: modelData