mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 17:25:17 +00:00
35 lines
946 B
QML
35 lines
946 B
QML
import QtQuick 2.6
|
|
import Sailfish.Silica 1.0
|
|
|
|
import "../"
|
|
import "../../Utils.js" as Utils
|
|
|
|
Column {
|
|
property var itemData
|
|
spacing: Theme.paddingMedium
|
|
|
|
PlayToolbar {
|
|
onPlayPressed: pageStack.push(Qt.resolvedUrl("../../pages/VideoPage.qml"),
|
|
{"itemId": itemId, "itemData": itemData, "audioTrack": trackSelector.audioTrack,
|
|
"subtitleTrack": trackSelector.subtitleTrack })
|
|
}
|
|
|
|
VideoTrackSelector {
|
|
id: trackSelector
|
|
width: parent.width
|
|
tracks: itemData.MediaStreams
|
|
}
|
|
|
|
PlainLabel {
|
|
id: tinyDetails
|
|
text: qsTr("Released: %1 — Run time: %2").arg(itemData.ProductionYear).arg(Utils.ticksToText(itemData.RunTimeTicks))
|
|
}
|
|
|
|
PlainLabel {
|
|
id: overviewText
|
|
text: itemData.Overview
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
color: Theme.secondaryHighlightColor
|
|
}
|
|
}
|