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 z: 1.2
height: parent.height * 0.25 height: parent.height * 0.25
width: parent.width width: parent.width
title: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).title show: elementColumn.children[ySelect].provider.getShow(elementColumn.children[ySelect].repeaterModel[elementColumn.children[ySelect].xIndex])
year: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).year
description: elementColumn.children[ySelect].provider.getShow(rowSelector.children[ySelect].xIndex).description
} }
ScrollView { ScrollView {
z: 1.0 z: 1.0
@@ -1,10 +1,7 @@
import QtQuick 2.12 import QtQuick 2.12
Row { Row {
id: root property var show
property string title
property int year
property string description
Item { Item {
height: parent.height height: parent.height
width: 16 width: 16
@@ -18,17 +15,17 @@ Row {
width: parent.width width: parent.width
} }
Text { Text {
text: title text: show.title
font.pointSize: 30 font.pointSize: 30
color: "#cdd7d9" color: "#cdd7d9"
} }
Text { Text {
text: year text: show.year
font.pointSize: 15 font.pointSize: 15
color: "#99afb4" color: "#99afb4"
} }
Text { Text {
text: description text: show.description
font.pointSize: 13 font.pointSize: 13
color: "#cdd7d9" color: "#cdd7d9"
width: parent.width * 0.6 width: parent.width * 0.6