mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-12-14 11:03:55 +00:00
Update UI to bare minimum to allow for core lib testing
This commit is contained in:
parent
56d7c1486e
commit
3cd1fd3e23
8 changed files with 206 additions and 12 deletions
37
qtquick/qml/pages/DetailPage.qml
Normal file
37
qtquick/qml/pages/DetailPage.qml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue