From 0ac690d0c1b6d08aa6eef37fc8e9406bdfbcc228 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 22 May 2023 07:22:33 +0200 Subject: [PATCH] Fixing cursor from expression editor. --- .../LogarithmPlotter/Setting/ExpressionEditor.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml index 1735278..897abda 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/ExpressionEditor.qml @@ -206,7 +206,7 @@ Item { verticalAlignment: TextInput.AlignVCenter horizontalAlignment: control.label == "" ? TextInput.AlignLeft : TextInput.AlignHCenter text: control.defValue - color: syntaxHighlightingEnabled ? "transparent" : sysPalette.windowText + color: syntaxHighlightingEnabled ? sysPalette.window : sysPalette.windowText focus: true selectByMouse: true @@ -229,8 +229,6 @@ Item { } } - //onTextEdited: acPopupContent.itemSelected = 0 - onActiveFocusChanged: { if(activeFocus && autocompleteEnabled) autocompletePopup.open() @@ -238,6 +236,12 @@ Item { autocompletePopup.close() } + cursorDelegate: Rectangle { + visible: editor.cursorVisible + color: sysPalette.windowText + width: editor.cursorRectangle.width + } + Keys.onUpPressed: function(event) { if(autocompleteEnabled) if(acPopupContent.itemSelected == 0)