mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
fix(cursor): fixed cursor type at opened context menu
This commit is contained in:
@@ -24,7 +24,7 @@ Rectangle {
|
||||
MouseArea {
|
||||
id: parentMouse
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.IBeamCursor
|
||||
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
|
||||
onClicked: textArea.forceActiveFocus()
|
||||
hoverEnabled: true
|
||||
|
||||
@@ -94,6 +94,7 @@ Rectangle {
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
ContextMenu.menu: ContextMenuType {
|
||||
id: contextMenu
|
||||
textObj: textArea
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ Rectangle {
|
||||
MouseArea {
|
||||
id: parentMouse
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.IBeamCursor
|
||||
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
|
||||
onClicked: textArea.forceActiveFocus()
|
||||
hoverEnabled: true
|
||||
|
||||
@@ -80,6 +80,7 @@ Rectangle {
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
ContextMenu.menu: ContextMenuType {
|
||||
id: contextMenu
|
||||
textObj: textArea
|
||||
}
|
||||
|
||||
|
||||
@@ -135,6 +135,7 @@ Item {
|
||||
}
|
||||
|
||||
ContextMenu.menu: ContextMenuType {
|
||||
id: contextMenu
|
||||
textObj: textField
|
||||
}
|
||||
|
||||
@@ -159,7 +160,7 @@ Item {
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: root
|
||||
cursorShape: Qt.IBeamCursor
|
||||
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
|
||||
|
||||
hoverEnabled: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user