Fixing cursor from expression editor.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
37150b5823
commit
0ac690d0c1
1 changed files with 7 additions and 3 deletions
|
@ -206,7 +206,7 @@ Item {
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
horizontalAlignment: control.label == "" ? TextInput.AlignLeft : TextInput.AlignHCenter
|
horizontalAlignment: control.label == "" ? TextInput.AlignLeft : TextInput.AlignHCenter
|
||||||
text: control.defValue
|
text: control.defValue
|
||||||
color: syntaxHighlightingEnabled ? "transparent" : sysPalette.windowText
|
color: syntaxHighlightingEnabled ? sysPalette.window : sysPalette.windowText
|
||||||
focus: true
|
focus: true
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
|
||||||
|
@ -229,8 +229,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//onTextEdited: acPopupContent.itemSelected = 0
|
|
||||||
|
|
||||||
onActiveFocusChanged: {
|
onActiveFocusChanged: {
|
||||||
if(activeFocus && autocompleteEnabled)
|
if(activeFocus && autocompleteEnabled)
|
||||||
autocompletePopup.open()
|
autocompletePopup.open()
|
||||||
|
@ -238,6 +236,12 @@ Item {
|
||||||
autocompletePopup.close()
|
autocompletePopup.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cursorDelegate: Rectangle {
|
||||||
|
visible: editor.cursorVisible
|
||||||
|
color: sysPalette.windowText
|
||||||
|
width: editor.cursorRectangle.width
|
||||||
|
}
|
||||||
|
|
||||||
Keys.onUpPressed: function(event) {
|
Keys.onUpPressed: function(event) {
|
||||||
if(autocompleteEnabled)
|
if(autocompleteEnabled)
|
||||||
if(acPopupContent.itemSelected == 0)
|
if(acPopupContent.itemSelected == 0)
|
||||||
|
|
Loading…
Reference in a new issue