fixing LibraryItem's subtitles
This commit is contained in:
parent
c3a61d51cf
commit
10d1440f5d
1 changed files with 17 additions and 9 deletions
|
@ -252,14 +252,22 @@ ColumnLayout {
|
||||||
height: selectedLibrary == libraryType ? 50 : 0
|
height: selectedLibrary == libraryType ? 50 : 0
|
||||||
text: title
|
text: title
|
||||||
|
|
||||||
/* subtitle: { */
|
Controls.Label {
|
||||||
/* if (libraryType == "song") */
|
anchors.top: parent.verticalCenter
|
||||||
/* author */
|
anchors.topMargin: Kirigami.Units.gridUnit / 2
|
||||||
/* else if (fileValidation) */
|
anchors.left: parent.left
|
||||||
/* filePath; */
|
anchors.leftMargin: Kirigami.Units.gridUnit * 1.7
|
||||||
/* else */
|
font.pointSize: 9
|
||||||
/* "file is missing" */
|
text: {
|
||||||
/* } */
|
if (libraryType == "song")
|
||||||
|
author
|
||||||
|
else if (fileValidation)
|
||||||
|
filePath.substr(7);
|
||||||
|
else
|
||||||
|
"file is missing";
|
||||||
|
}
|
||||||
|
elide: Text.ElideRight
|
||||||
|
}
|
||||||
|
|
||||||
icon.source: itemIcon
|
icon.source: itemIcon
|
||||||
icon.width: Kirigami.Units.gridUnit
|
icon.width: Kirigami.Units.gridUnit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue