Temporarily revert TextArea change until I find a proper fix for the binding loop

This commit is contained in:
Nicolas Werner 2023-06-19 02:55:04 +02:00
parent e828e012ea
commit d6ab75250f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -6,20 +6,20 @@ import QtQuick 2.5
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import im.nheko 1.0 import im.nheko 1.0
TextArea { TextEdit {
id: r id: r
property alias cursorShape: cs.cursorShape property alias cursorShape: cs.cursorShape
leftInset: 0 //leftInset: 0
bottomInset: 0 //bottomInset: 0
rightInset: 0 //rightInset: 0
topInset: 0 //topInset: 0
leftPadding: 0 //leftPadding: 0
bottomPadding: 0 //bottomPadding: 0
rightPadding: 0 //rightPadding: 0
topPadding: 0 //topPadding: 0
background: null //background: null
ToolTip.text: hoveredLink ToolTip.text: hoveredLink
ToolTip.visible: hoveredLink || false ToolTip.visible: hoveredLink || false
@ -40,9 +40,9 @@ TextArea {
onLinkActivated: Nheko.openLink(link) onLinkActivated: Nheko.openLink(link)
// propagate events up //// propagate events up
onPressAndHold: (event) => event.accepted = false //onPressAndHold: (event) => event.accepted = false
onPressed: (event) => event.accepted = (event.button == Qt.LeftButton) //onPressed: (event) => event.accepted = (event.button == Qt.LeftButton)
NhekoCursorShape { NhekoCursorShape {
id: cs id: cs