From 6c1cb965eb3a73e2abe7a0ef56231d8b3a3e68c5 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Thu, 27 May 2021 15:22:48 +0200 Subject: [PATCH] fix(Controls): ensure round buttons expose `hovered` state Fixes #88 --- ui/StatusQ/src/StatusQ/Controls/StatusFlatRoundButton.qml | 2 ++ ui/StatusQ/src/StatusQ/Controls/StatusRoundButton.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusFlatRoundButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusFlatRoundButton.qml index 0610c8fab0..108bb61b44 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusFlatRoundButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusFlatRoundButton.qml @@ -32,6 +32,8 @@ Rectangle { property bool loading: false + property alias hovered: sensor.containsMouse + property int type: StatusFlatRoundButton.Type.Primary signal pressed(var mouse) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusRoundButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusRoundButton.qml index 98b6206cff..7861bb881a 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusRoundButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusRoundButton.qml @@ -32,6 +32,8 @@ Rectangle { property bool loading: false + property alias hovered: sensor.containsMouse + property int type: StatusRoundButton.Type.Primary signal pressed(var mouse)