Files
htpc-client/layouts/components/ContentView.qml
T
restitux b4b32064c4 Expose Show properly to QML and expand ContentView
This adds a WIP ContentView for displaying a cover art
oriented browser. The Show class was updated to expose
the needed properties to QML correctly.

This introducted the use of @pyqtSlot to expose functions
to QML (as opposed to properties).
2022-08-20 00:17:14 -04:00

44 lines
1.3 KiB
QML

import QtQuick 2.12
import QtQuick.Controls 1.4
import Ikinuki.Client 1.0
TabView {
property var providers
width: parent.width * 0.7
height: parent.height
tabsVisible: false
Repeater {
model: providers
Tab {
Rectangle {
color: "#22282A"
Column {
Row {
Repeater {
property var provider: modelData
id: inProgressRepeater
model: modelData.inProgress
Column {
id: showColumn
property var show: inProgressRepeater.provider.getShow(modelData)
Image {
height: 200
width: 100
source: showColumn.show.poster
}
Text {
text: showColumn.show.title
}
Text {
text: showColumn.show.year
}
}
}
}
}
}
}
}
}