Correct metadata lookup using index instead of id

This commit is contained in:
2022-09-08 11:02:02 -06:00
parent d691aeb6e9
commit b50b19bda7
2 changed files with 5 additions and 10 deletions
@@ -44,9 +44,7 @@ StackLayout {
z: 1.2
height: parent.height * 0.25
width: parent.width
title: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).title
year: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).year
description: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).description
show: elementColumn.children[ySelect].provider.getShow(elementColumn.children[ySelect].repeaterModel[elementColumn.children[ySelect].xIndex])
}
ScrollView {
z: 1.0
@@ -1,10 +1,7 @@
import QtQuick 2.12
Row {
id: root
property string title
property int year
property string description
property var show
Item {
height: parent.height
width: 16
@@ -18,17 +15,17 @@ Row {
width: parent.width
}
Text {
text: title
text: show.title
font.pointSize: 30
color: "#cdd7d9"
}
Text {
text: year
text: show.year
font.pointSize: 15
color: "#99afb4"
}
Text {
text: description
text: show.description
font.pointSize: 13
color: "#cdd7d9"
width: parent.width * 0.6