diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-23 02:28:48 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-06-23 03:09:29 +0200 |
| commit | 614a7a086a636f6d6d1a67425fb147d71df39bac (patch) | |
| tree | 12568f94587f98b75da1a2f4cb4de179a5f81724 /components/Label.qml | |
| parent | 453388f7444c08fed77f9d4e256666abc77c64dd (diff) | |
| download | monzero-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.qml | 7 |
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 } } } |
