[ui] add FilepathHelper Python class to manipulate paths and QUrls

* avoid non-cross platform hacks to convert string path to urls
* use standard python API
This commit is contained in:
Yann Lanthony 2018-03-06 15:14:18 +01:00
parent 618b7e18b6
commit f1b42acc14
11 changed files with 88 additions and 59 deletions

View file

@ -68,7 +68,7 @@ Item {
Image {
anchors.fill: parent
anchors.margins: 4
source: Filepath.stringToFile(imageDelegate.source)
source: Filepath.stringToUrl(imageDelegate.source)
sourceSize: Qt.size(100, 100)
asynchronous: true
autoTransform: true