From 00490f91293e897e3dd1ea8fad72e032ff718c7b Mon Sep 17 00:00:00 2001 From: IgorekLoschinin <igor.loschinin2014@yandex.ru> Date: Tue, 19 Oct 2021 22:35:47 +0300 Subject: [PATCH] fix lstviewer --- src/Library/src/QuasarAppCreditsModule/Credits.qml | 6 ++---- src/Library/src/QuasarAppCreditsModule/ListViewer.qml | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Library/src/QuasarAppCreditsModule/Credits.qml b/src/Library/src/QuasarAppCreditsModule/Credits.qml index 0f16409..eff6dbd 100644 --- a/src/Library/src/QuasarAppCreditsModule/Credits.qml +++ b/src/Library/src/QuasarAppCreditsModule/Credits.qml @@ -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: [] - } } ] diff --git a/src/Library/src/QuasarAppCreditsModule/ListViewer.qml b/src/Library/src/QuasarAppCreditsModule/ListViewer.qml index 1d512ce..6f0c093 100644 --- a/src/Library/src/QuasarAppCreditsModule/ListViewer.qml +++ b/src/Library/src/QuasarAppCreditsModule/ListViewer.qml @@ -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