diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-01 01:37:47 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-01 01:37:47 -0500 |
| commit | 1442215ce542ee8aafdba4862e3cb8886bda7f8d (patch) | |
| tree | 8d222369f34e58018e7b8f325374f8a10b43b727 /components/CheckBox.qml | |
| parent | ba3bdcd6a1b714e368c34f9fb72375d18e02ff68 (diff) | |
| parent | 9d3864b7f09efc65d2f0e64f6579d5a3974721a2 (diff) | |
| download | monzero-gui-1442215ce542ee8aafdba4862e3cb8886bda7f8d.tar.gz monzero-gui-1442215ce542ee8aafdba4862e3cb8886bda7f8d.tar.xz monzero-gui-1442215ce542ee8aafdba4862e3cb8886bda7f8d.zip | |
Merge pull request #3490
9d3864b Implement tooltips in multiple pages and components (rating89us)
Diffstat (limited to 'components/CheckBox.qml')
| -rw-r--r-- | components/CheckBox.qml | 5 |
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() } |
