b4b32064c4
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).
44 lines
1.3 KiB
QML
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|