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
|
||||
text: title
|
||||
|
||||
/* subtitle: { */
|
||||
/* if (libraryType == "song") */
|
||||
/* author */
|
||||
/* else if (fileValidation) */
|
||||
/* filePath; */
|
||||
/* else */
|
||||
/* "file is missing" */
|
||||
/* } */
|
||||
Controls.Label {
|
||||
anchors.top: parent.verticalCenter
|
||||
anchors.topMargin: Kirigami.Units.gridUnit / 2
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Kirigami.Units.gridUnit * 1.7
|
||||
font.pointSize: 9
|
||||
text: {
|
||||
if (libraryType == "song")
|
||||
author
|
||||
else if (fileValidation)
|
||||
filePath.substr(7);
|
||||
else
|
||||
"file is missing";
|
||||
}
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
icon.source: itemIcon
|
||||
icon.width: Kirigami.Units.gridUnit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue