Changeset View
Changeset View
Standalone View
Standalone View
src/qml/PlayListEntry.qml
Show All 27 Lines | 25 | FocusScope { | |||
---|---|---|---|---|---|
28 | property var index | 28 | property var index | ||
29 | property bool isSingleDiscAlbum | 29 | property bool isSingleDiscAlbum | ||
30 | property int isPlaying | 30 | property int isPlaying | ||
31 | property bool isSelected | 31 | property bool isSelected | ||
32 | property bool isValid | 32 | property bool isValid | ||
33 | property bool isAlternateColor | 33 | property bool isAlternateColor | ||
34 | property bool containsMouse | 34 | property bool containsMouse | ||
35 | property int databaseId: 0 | 35 | property int databaseId: 0 | ||
36 | property var entryType | ||||
36 | property string title | 37 | property string title | ||
37 | property string artist | 38 | property string artist | ||
38 | property string album | 39 | property string album | ||
39 | property string albumArtist | 40 | property string albumArtist | ||
40 | property string duration | 41 | property string duration | ||
41 | property url fileName | 42 | property url fileName | ||
42 | property url imageUrl | 43 | property url imageUrl | ||
43 | property int trackNumber | 44 | property int trackNumber | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
106 | Loader { | 107 | Loader { | ||
107 | id: metadataLoader | 108 | id: metadataLoader | ||
108 | active: false | 109 | active: false | ||
109 | onLoaded: item.show() | 110 | onLoaded: item.show() | ||
110 | 111 | | |||
111 | sourceComponent: MediaTrackMetadataView { | 112 | sourceComponent: MediaTrackMetadataView { | ||
112 | databaseId: playListEntry.databaseId | 113 | databaseId: playListEntry.databaseId | ||
113 | fileName: playListEntry.fileName | 114 | fileName: playListEntry.fileName | ||
114 | onRejected: metadataLoader.active = false; | 115 | showImage: entryType == ElisaUtils.Track | ||
116 | modelType: entryType | ||||
117 | showTrackFileName: entryType == ElisaUtils.Track | ||||
118 | showDeleteButton: entryType != ElisaUtils.Track | ||||
119 | showApplyButton: entryType != ElisaUtils.Track | ||||
120 | editableMetadata: entryType != ElisaUtils.Track | ||||
121 | | ||||
122 | onRejected: metadataLoader.active = false | ||||
115 | } | 123 | } | ||
116 | } | 124 | } | ||
117 | 125 | | |||
118 | Rectangle { | 126 | Rectangle { | ||
119 | id: entryBackground | 127 | id: entryBackground | ||
120 | 128 | | |||
121 | anchors.fill: parent | 129 | anchors.fill: parent | ||
122 | anchors.rightMargin: LayoutMirroring.enabled ? scrollBarWidth : 0 | 130 | anchors.rightMargin: LayoutMirroring.enabled ? scrollBarWidth : 0 | ||
▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines |