some tweaks to the library components

This commit is contained in:
Chris Cochrun 2023-04-18 06:42:56 -05:00
parent ecebddf557
commit 990edf3818
2 changed files with 12 additions and 7 deletions

View file

@ -36,7 +36,8 @@ Item {
libraryType: "song"
headerLabel: "Songs"
itemIcon: "folder-music-symbolic"
itemSubtitle: model.author
/* itemSubtitle: model.author */
count: innerModel.rowCount()
newItemFunction: (function() {
songProxyModel.setFilterRegularExpression("");
songProxyModel.songModel.newSong();
@ -63,7 +64,8 @@ Item {
libraryType: "video"
headerLabel: "Videos"
itemIcon: "folder-videos-symbolic"
itemSubtitle: model.path
/* itemSubtitle: model.path */
count: innerModel.count()
newItemFunction: (function() {
videoProxyModel.setFilterRegularExpression("");
})
@ -83,7 +85,8 @@ Item {
libraryType: "image"
headerLabel: "Images"
itemIcon: "folder-pictures-symbolic"
itemSubtitle: model.path
/* itemSubtitle: model.path */
count: imageProxyModel.imageModel.count()
newItemFunction: (function() {
imageProxyModel.setFilterRegularExpression("");
})
@ -103,7 +106,8 @@ Item {
libraryType: "presentation"
headerLabel: "Presentations"
itemIcon: "x-office-presentation-symbolic"
itemSubtitle: model.path
/* itemSubtitle: model.path */
count: innerModel.count()
newItemFunction: (function() {
presProxyModel.setFilterRegularExpression("");
})