Show icons in device type list
This commit is contained in:
@@ -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