Show icons in device type list

This commit is contained in:
Michael Ehrenreich committed 2023-02-23 00:34:31 +01:00
1 parent bbb3ccd0db
commit 97be6c6b6e
5 files changed
+19 -4

No files matched your search

+9
View File
@@ -4,4 +4,13 @@ import Qt.labs.folderlistmodel 2.4
FolderListModel {
folder: "qrc:/scheincommander/icons/"
showDirs: false
function getUrlForIcon(name) {
let myFolder = folder;
if (myFolder.length < 1 || myFolder.charAt(myFolder.length - 1) !== '/') {
myFolder = myFolder + '/';
}
return myFolder + name + ".png"
}
}