Commit 3eb880a5 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fix setting source for Images

parent 67a0fcf8
......@@ -18,12 +18,22 @@ QWidget {
layout: VerticalLayout {
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
text: "Source";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Source")
}
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
itemNode: anchorBackend.itemNode
filter: "*.png *.gif *.jpg"
showComboBox: true
}
}
}
......
......@@ -21,12 +21,22 @@ QWidget {
layout: VerticalLayout {
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
text: qsTr("Source ")
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Source")
}
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
itemNode: anchorBackend.itemNode
filter: "*.png *.gif *.jpg"
showComboBox: true
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment