override cursor when chat text content hovered (only global cursor works on chat bubble) #LINQT-2364
This commit is contained in:
parent
be5a7fa4e7
commit
f52d2212bb
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ TextEdit {
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
scrollGestureEnabled: false
|
scrollGestureEnabled: false
|
||||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
onContainsMouseChanged: {
|
||||||
|
if (containsMouse) UtilsCpp.setGlobalCursor(Qt.IBeamCursor)
|
||||||
|
else UtilsCpp.restoreGlobalCursor()
|
||||||
|
}
|
||||||
|
cursorShape: mainItem.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
onPressed: (mouse) => {
|
onPressed: (mouse) => {
|
||||||
// if(!keepLastSelection) {
|
// if(!keepLastSelection) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue