From 98b019463de235c98dc589d516af3dbc3e0c5283 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 --- src/StatusQ/Controls/StatusFlatRoundButton.qml | 2 ++ src/StatusQ/Controls/StatusRoundButton.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/StatusQ/Controls/StatusFlatRoundButton.qml b/src/StatusQ/Controls/StatusFlatRoundButton.qml index 0610c8fa..108bb61b 100644 --- a/src/StatusQ/Controls/StatusFlatRoundButton.qml +++ b/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/src/StatusQ/Controls/StatusRoundButton.qml b/src/StatusQ/Controls/StatusRoundButton.qml index 98b6206c..7861bb88 100644 --- a/src/StatusQ/Controls/StatusRoundButton.qml +++ b/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)