mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-16 14:35:17 +00:00
38 lines
874 B
QML
38 lines
874 B
QML
|
import QtQuick 2.12
|
||
|
import QtQuick.Controls 2.12
|
||
|
import QtQuick.Window 2.12
|
||
|
|
||
|
import nl.netsoj.chris.Jellyfin 1.0
|
||
|
|
||
|
import "../components"
|
||
|
import "../.."
|
||
|
|
||
|
Page {
|
||
|
property bool _modelsLoaded: false
|
||
|
property StackView stackView: StackView.view
|
||
|
property string itemId
|
||
|
property alias jellyfinItem: jellyfinItem
|
||
|
header: ToolBar {
|
||
|
Label {
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
font.pixelSize: SailfinStyle.fontSizeLarge
|
||
|
text: jellyfinItem.name
|
||
|
}
|
||
|
}
|
||
|
|
||
|
MouseArea {
|
||
|
anchors.fill: parent
|
||
|
onClicked: stackView.pop()
|
||
|
}
|
||
|
JellyfinItem {
|
||
|
id: jellyfinItem
|
||
|
jellyfinId: itemId
|
||
|
apiClient: ApiClient
|
||
|
}
|
||
|
|
||
|
Image {
|
||
|
anchors.centerIn: parent
|
||
|
source: ApiClient.baseUrl + "/Items/" + itemId + "/Images/Primary?tag=" + jellyfinItem.tag
|
||
|
}
|
||
|
}
|