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

View File

@ -10,7 +10,7 @@ Page {
property bool showHeader: true
property bool showPatreon: 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.
// The section it is section name
@ -109,7 +109,7 @@ Page {
ListViewer {
model: listCustomInfo
visible: showPatrons
visible: listCustomInfo.length
}
}
@ -182,8 +182,6 @@ Page {
showHeader: false
showPatreon: false
showBitcoin: false
listCustomInfo: []
}
}
]

View File

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