Commit b099ab92 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen
Browse files

QmlDesigner.PropertyEditor: Fixing url editor



Task-number: QTCREATORBUG-11380
Change-Id: I00cdcc8626e2e178b9fff8d11b26f87d9aad03a8
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 29c58eab
......@@ -56,7 +56,7 @@ RowLayout {
x: 2
anchors.verticalCenter: parent.verticalCenter
backendValue: urlChooser.backendValue
visible: comboBox.enabled
visible: urlChooser.enabled
}
property bool isComplete: false
......@@ -92,16 +92,25 @@ RowLayout {
setCurrentText(textValue)
}
onAccepted: {
if (!comboBox.isComplete)
return;
if (backendValue.value !== currentText)
backendValue.value = currentText;
}
onCurrentTextChanged: {
onActivated: {
var cText = textAt(index)
print(cText)
if (backendValue === undefined)
return;
if (!comboBox.isComplete)
return;
if (backendValue.value !== currentText)
backendValue.value = currentText;
if (backendValue.value !== cText)
backendValue.value = cText;
}
Component.onCompleted: {
......@@ -158,7 +167,8 @@ RowLayout {
onClicked: {
darkPanel.opacity = 1
fileModel.openFileDialog()
backendValue.value = fileModel.fileName
if (fileModel.fileName != "")
backendValue.value = fileModel.fileName
darkPanel.opacity = 0
}
}
......
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