[vlc-devel] [PATCH 05/16] qml: add backgroundVisible indicator property to IconToolButton
Fatih Uzunoglu
fuzun54 at outlook.com
Wed Jul 29 23:04:28 CEST 2020
---
modules/gui/qt/widgets/qml/IconToolButton.qml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt/widgets/qml/IconToolButton.qml b/modules/gui/qt/widgets/qml/IconToolButton.qml
index c4faac5ab8..47c51ff673 100644
--- a/modules/gui/qt/widgets/qml/IconToolButton.qml
+++ b/modules/gui/qt/widgets/qml/IconToolButton.qml
@@ -34,6 +34,7 @@ ToolButton {
property color colorOverlay: "transparent"
property string textOverlay: ""
property bool borderEnabled: false
+ property bool backgroundVisible: focusBackground.active
enabled: !paintOnly
@@ -91,6 +92,7 @@ ToolButton {
}
background: FocusBackground {
+ id: focusBackground
active: control.activeFocus || control.hovered || control.highlighted
implicitHeight: control.size
implicitWidth: control.size
--
2.25.1
More information about the vlc-devel
mailing list