diff options
Diffstat (limited to 'components/IconButton.qml')
| -rw-r--r-- | components/IconButton.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/IconButton.qml b/components/IconButton.qml index 5d4d8d19..917c5d03 100644 --- a/components/IconButton.qml +++ b/components/IconButton.qml @@ -36,19 +36,28 @@ MoneroEffects.ImageMask { color: MoneroComponents.Style.defaultFontColor image: "" + property alias tooltip: tooltip.text signal clicked(var mouse) + MoneroComponents.Tooltip { + id: tooltip + anchors.fill: parent + tooltipLeft: true + } + MouseArea { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor onEntered: { + tooltip.text ? tooltip.tooltipPopup.open() : "" button.width = button.width + 2 button.height = button.height + 2 } onExited: { + tooltip.text ? tooltip.tooltipPopup.close() : "" button.width = button.width - 2 button.height = button.height - 2 } |
