Show icons in device type list
This commit is contained in:
1 parent
bbb3ccd0db
commit
97be6c6b6e
5 files changed
+19
-4
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user