aboutsummaryrefslogtreecommitdiff
path: root/components/CheckBox.qml
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-05-19 18:36:44 +0200
committerrating89us <rating89us@rating89us.com>2021-05-29 04:02:19 +0200
commit9d3864b7f09efc65d2f0e64f6579d5a3974721a2 (patch)
treea4d0a39761280c3f6c744d61c433fb9ef3d08482 /components/CheckBox.qml
parent937cb9825672d07a1917d2d9daf823802ec31d1b (diff)
downloadmonzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.tar.gz
monzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.tar.xz
monzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.zip
Implement tooltips in multiple pages and components
Diffstat (limited to 'components/CheckBox.qml')
-rw-r--r--components/CheckBox.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/CheckBox.qml b/components/CheckBox.qml
index 6e120f07..121bbab6 100644
--- a/components/CheckBox.qml
+++ b/components/CheckBox.qml
@@ -48,6 +48,8 @@ Item {
property int fontSize: 14
property alias fontColor: label.color
property bool iconOnTheLeft: true
+ property alias tooltipIconVisible: label.tooltipIconVisible
+ property alias tooltip: label.tooltip
signal clicked()
height: 25
@@ -121,7 +123,10 @@ Item {
MouseArea {
anchors.fill: parent
+ hoverEnabled: true
cursorShape: Qt.PointingHandCursor
+ onEntered: !label.tooltipIconVisible && label.tooltip ? label.tooltipPopup.open() : ""
+ onExited: !label.tooltipIconVisible && label.tooltip ? label.tooltipPopup.close() : ""
onClicked: {
toggle()
}