Changeset View
Changeset View
Standalone View
Standalone View
src/qml/MediaTrackMetadataView.qml
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 68 | if (genre.length !== 0) | |||
---|---|---|---|---|---|
69 | trackList.append({"name": i18nc("Genre label for track metadata view", "Genre:"), "content": genre}) | 69 | trackList.append({"name": i18nc("Genre label for track metadata view", "Genre:"), "content": genre}) | ||
70 | trackData.Layout.preferredHeight = textSize.height * trackData.count | 70 | trackData.Layout.preferredHeight = textSize.height * trackData.count | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | ColumnLayout { | 73 | ColumnLayout { | ||
74 | anchors.fill: parent | 74 | anchors.fill: parent | ||
75 | spacing: 0 | 75 | spacing: 0 | ||
76 | 76 | | |||
77 | // This is needed since Dialog doesn't inherit from Item | ||||
safaalfulaij: RTL:
{F5692218}
LTR:
{F5692217} | |||||
78 | LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft | ||||
79 | LayoutMirroring.childrenInherit: true | ||||
80 | | ||||
77 | ListView { | 81 | ListView { | ||
78 | id: trackData | 82 | id: trackData | ||
79 | 83 | | |||
80 | interactive: false | 84 | interactive: false | ||
81 | Layout.fillWidth: true | 85 | Layout.fillWidth: true | ||
82 | 86 | | |||
83 | model: ListModel { | 87 | model: ListModel { | ||
84 | id: trackList | 88 | id: trackList | ||
85 | } | 89 | } | ||
86 | 90 | | |||
87 | delegate: RowLayout { | 91 | delegate: RowLayout { | ||
88 | id: delegateRow | 92 | id: delegateRow | ||
89 | spacing: 0 | 93 | spacing: 0 | ||
90 | 94 | | |||
91 | Text { | 95 | Text { | ||
92 | text: name | 96 | text: name | ||
93 | color: myPalette.text | 97 | color: myPalette.text | ||
94 | horizontalAlignment: Text.AlignRight | 98 | horizontalAlignment: Text.AlignRight | ||
95 | 99 | | |||
96 | Layout.preferredWidth: trackData.width * 0.3 | 100 | Layout.preferredWidth: trackData.width * 0.3 | ||
97 | Layout.minimumHeight: textSize.height | 101 | Layout.minimumHeight: textSize.height | ||
98 | Layout.rightMargin: elisaTheme.layoutHorizontalMargin | 102 | Layout.rightMargin: !LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||
103 | Layout.leftMargin: LayoutMirroring.enabled ? elisaTheme.layoutHorizontalMargin : 0 | ||||
99 | } | 104 | } | ||
100 | 105 | | |||
101 | Text { | 106 | Text { | ||
102 | text: content | 107 | text: content | ||
103 | color: myPalette.text | 108 | color: myPalette.text | ||
104 | 109 | | |||
105 | horizontalAlignment: Text.AlignLeft | 110 | horizontalAlignment: Text.AlignLeft | ||
106 | elide: Text.ElideRight | 111 | elide: Text.ElideRight | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |
RTL:
LTR: