aboutsummaryrefslogtreecommitdiff
path: root/components/Label.qml
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-06-23 02:28:48 +0200
committerrating89us <rating89us@rating89us.com>2021-06-23 03:09:29 +0200
commit614a7a086a636f6d6d1a67425fb147d71df39bac (patch)
tree12568f94587f98b75da1a2f4cb4de179a5f81724 /components/Label.qml
parent453388f7444c08fed77f9d4e256666abc77c64dd (diff)
downloadmonzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.tar.gz
monzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.tar.xz
monzero-gui-614a7a086a636f6d6d1a67425fb147d71df39bac.zip
RemoteNodeList: display shield icon if trusted daemon
Diffstat (limited to 'components/Label.qml')
-rw-r--r--components/Label.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/Label.qml b/components/Label.qml
index 261c02a5..c4a967ec 100644
--- a/components/Label.qml
+++ b/components/Label.qml
@@ -37,6 +37,7 @@ Item {
property alias tooltip: label.tooltip
property alias tooltipIconVisible: label.tooltipIconVisible
property alias color: label.color
+ property alias labelMouseArea: labelMouseArea
property int textFormat: Text.PlainText
property string tipText: ""
property int fontSize: 16
@@ -72,9 +73,13 @@ Item {
onLinkActivated: item.linkActivated()
textFormat: parent.textFormat
MouseArea {
+ id: labelMouseArea
anchors.fill: parent
+ hoverEnabled: true
acceptedButtons: Qt.NoButton
- cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
+ cursorShape: parent.hoveredLink || (tooltip && !tooltipIconVisible) ? Qt.PointingHandCursor : Qt.ArrowCursor
+ onEntered: tooltip && !tooltipIconVisible ? parent.tooltipPopup.open() : undefined
+ onExited: tooltip && !tooltipIconVisible ? parent.tooltipPopup.close() : undefined
}
}
}