Changeset View
Changeset View
Standalone View
Standalone View
src/qml/MetaDataDelegate.qml
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 51 | Loader { | |||
---|---|---|---|---|---|
54 | active: model.type === TrackMetadataModel.TextEntry || model.type === TrackMetadataModel.IntegerEntry | 54 | active: model.type === TrackMetadataModel.TextEntry || model.type === TrackMetadataModel.IntegerEntry | ||
55 | visible: model.type === TrackMetadataModel.TextEntry || model.type === TrackMetadataModel.IntegerEntry | 55 | visible: model.type === TrackMetadataModel.TextEntry || model.type === TrackMetadataModel.IntegerEntry | ||
56 | 56 | | |||
57 | Layout.fillWidth: true | 57 | Layout.fillWidth: true | ||
58 | Layout.alignment: Qt.AlignTop | 58 | Layout.alignment: Qt.AlignTop | ||
59 | 59 | | |||
60 | 60 | | |||
61 | sourceComponent: LabelWithToolTip { | 61 | sourceComponent: LabelWithToolTip { | ||
62 | text: model.display | 62 | text: model.display ? model.display : '' | ||
63 | 63 | | |||
64 | horizontalAlignment: Text.AlignLeft | 64 | horizontalAlignment: Text.AlignLeft | ||
65 | elide: Text.ElideRight | 65 | elide: Text.ElideRight | ||
66 | 66 | | |||
67 | anchors.fill: parent | 67 | anchors.fill: parent | ||
68 | } | 68 | } | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | Loader { | 71 | Loader { | ||
72 | id: longTextDisplayLoader | 72 | id: longTextDisplayLoader | ||
73 | 73 | | |||
74 | active: model.type === TrackMetadataModel.LongTextEntry | 74 | active: model.type === TrackMetadataModel.LongTextEntry | ||
75 | visible: model.type === TrackMetadataModel.LongTextEntry | 75 | visible: model.type === TrackMetadataModel.LongTextEntry | ||
76 | 76 | | |||
77 | Layout.fillWidth: true | 77 | Layout.fillWidth: true | ||
78 | Layout.maximumWidth: delegateRow.width - (0.8 * elisaTheme.coverImageSize + elisaTheme.layoutHorizontalMargin * 2) | 78 | Layout.maximumWidth: delegateRow.width - (0.8 * elisaTheme.coverImageSize + elisaTheme.layoutHorizontalMargin * 2) | ||
79 | Layout.alignment: Qt.AlignTop | 79 | Layout.alignment: Qt.AlignTop | ||
80 | 80 | | |||
81 | sourceComponent: Label { | 81 | sourceComponent: Label { | ||
82 | text: model.display | 82 | text: model.display ? model.display : '' | ||
83 | 83 | | |||
84 | horizontalAlignment: Text.AlignLeft | 84 | horizontalAlignment: Text.AlignLeft | ||
85 | elide: Text.ElideRight | 85 | elide: Text.ElideRight | ||
86 | 86 | | |||
87 | anchors.fill: parent | 87 | anchors.fill: parent | ||
88 | 88 | | |||
89 | wrapMode: Text.WordWrap | 89 | wrapMode: Text.WordWrap | ||
90 | } | 90 | } | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |