Skip to content

Commit

Permalink
Improve ExternalResource widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 9, 2016
1 parent b66a4c5 commit d314e02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qml/editorwidgets/ExternalResource.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ 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 {
id: button
width: 36 * dp
height: 36 * dp

round: true

anchors.right: parent.right
anchors.bottom: parent.bottom

Expand Down

0 comments on commit d314e02

Please sign in to comment.