Fix mouse cursor shape in TextInputField

Should be IBeamCursor, unless readonly (same behaviour as standard QML TextField)
This commit is contained in:
Casper Jeukendrup 2022-03-24 23:33:05 +01:00
parent b5b2ae6625
commit 2f16128eef
No known key found for this signature in database
GPG key ID: 6C571BEF59E722DD

View file

@ -283,6 +283,7 @@ FocusScope {
propagateComposedEvents: true
hoverEnabled: true
cursorShape: root.readOnly ? Qt.ArrowCursor : Qt.IBeamCursor
onPressed: function(mouse) {
root.ensureActiveFocus()