From e3b6f3eb544cb5c9ba7e470687b570e80f998a48 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 12 Jul 2020 15:48:28 -0400 Subject: [PATCH] HButton: add "uncheckable" property --- src/gui/Base/HButton.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/Base/HButton.qml b/src/gui/Base/HButton.qml index 0462f3ad..79b69ad2 100644 --- a/src/gui/Base/HButton.qml +++ b/src/gui/Base/HButton.qml @@ -21,6 +21,7 @@ Button { property bool circle: false property bool padded: true property bool enableRadius: false + property bool uncheckable: true property HToolTip toolTip: HToolTip { id: toolTip @@ -71,4 +72,9 @@ Button { when: disableWhileLoading && button.loading value: false } + + MouseArea { + anchors.fill: parent + enabled: ! parent.uncheckable && parent.checked + } }