Use pointer hand for click target
This commit is contained in:
@@ -1350,6 +1350,7 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onEntered: root.showTooltip(buttonRoot, buttonRoot.tooltipText)
|
onEntered: root.showTooltip(buttonRoot, buttonRoot.tooltipText)
|
||||||
onExited: root.hideTooltip(buttonRoot)
|
onExited: root.hideTooltip(buttonRoot)
|
||||||
onClicked: function(mouse) { buttonRoot.pressed(mouse.button) }
|
onClicked: function(mouse) { buttonRoot.pressed(mouse.button) }
|
||||||
@@ -1861,6 +1862,7 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onEntered: root.showTooltip(trayItemRoot, root.trayTooltip(modelData))
|
onEntered: root.showTooltip(trayItemRoot, root.trayTooltip(modelData))
|
||||||
onExited: root.hideTooltip(trayItemRoot)
|
onExited: root.hideTooltip(trayItemRoot)
|
||||||
onClicked: function(mouse) {
|
onClicked: function(mouse) {
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ Rectangle {
|
|||||||
id: mouseArea
|
id: mouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: function(mouse) {
|
onClicked: function(mouse) {
|
||||||
if (mouse.button === Qt.RightButton) root.rightClicked()
|
if (mouse.button === Qt.RightButton) root.rightClicked()
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ Item {
|
|||||||
id: mouseArea
|
id: mouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
|
|
||||||
function valueFromX(x) {
|
function valueFromX(x) {
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onEntered: if (root.bar) root.bar.showTooltip(root, root.tooltipText)
|
onEntered: if (root.bar) root.bar.showTooltip(root, root.tooltipText)
|
||||||
onExited: if (root.bar) root.bar.hideTooltip(root)
|
onExited: if (root.bar) root.bar.hideTooltip(root)
|
||||||
onClicked: function(mouse) {
|
onClicked: function(mouse) {
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ Item {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: root.activePlayer ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
|
|
||||||
onClicked: function(mouse) {
|
onClicked: function(mouse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user