1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-05 18:22:46 +00:00

Added debug page, fix RemoteImage on covers

This commit is contained in:
Chris Josten 2021-02-13 21:42:57 +01:00
parent eda4994aac
commit 5ddd5e8e2e
12 changed files with 112 additions and 123 deletions

View file

@ -32,6 +32,7 @@ BackgroundItem {
bottom: parent.bottom
bottomMargin: Theme.paddingMedium
}
width: height
}
Label {

View file

@ -36,7 +36,9 @@ SilicaItem {
property var __parentPage : null
property bool _alreadyLoaded: false
readonly property bool _shouldLoad: _alreadyLoaded || __parentPage && [PageStatus.Active, PageStatus.Deactivating].indexOf(__parentPage.status) >= 0
readonly property bool _shouldLoad: _alreadyLoaded
|| __parentPage == null // Not an indirect child of a page. Immediatly start loading.
|| __parentPage && [PageStatus.Active, PageStatus.Deactivating].indexOf(__parentPage.status) >= 0
onSourceChanged: _alreadyLoaded = false

View file

@ -26,6 +26,9 @@ Column {
readonly property int audioTrack: audioSelector.currentItem ? audioSelector.currentItem._index : 0
readonly property int subtitleTrack: subitleSelector.currentItem._index
ListModel {
id: videoModel
}
ListModel {
id: audioModel
}
@ -34,6 +37,21 @@ Column {
id: subtitleModel
}
ComboBox {
id: videoSelector
label: qsTr("Video track")
enabled: videoModel.count > 1
menu: ContextMenu {
Repeater {
model: videoModel
MenuItem {
readonly property int _index: model.index
text: model.displayTitle
}
}
}
}
ComboBox {
id: audioSelector
label: qsTr("Audio track")
@ -80,6 +98,9 @@ Column {
for(var i = 0; i < tracks.length; i++) {
var track = tracks[i];
switch(track.type) {
case MediaStream.Video:
videoModel.append(track)
break;
case MediaStream.Audio:
audioModel.append(track)
break;