From d314e02ca64b50116af90227b500251cbe828235 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 6 Jul 2016 15:53:56 +0200 Subject: [PATCH] Improve ExternalResource widget --- src/qml/editorwidgets/ExternalResource.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/editorwidgets/ExternalResource.qml b/src/qml/editorwidgets/ExternalResource.qml index b12e32b426..b6fb63bf9d 100644 --- a/src/qml/editorwidgets/ExternalResource.qml +++ b/src/qml/editorwidgets/ExternalResource.qml @@ -19,9 +19,8 @@ Item { width: parent.width autoTransform: true fillMode: Image.PreserveAspectFit - // source: 'file:///home/mku/Pictures/tra-atlas.png' - source: 'file://' + project.homePath + '/' + value; + source: value ? 'file://' + project.homePath + '/' + value : undefined } QField.Button { @@ -29,6 +28,8 @@ Item { width: 36 * dp height: 36 * dp + round: true + anchors.right: parent.right anchors.bottom: parent.bottom