[vlc-commits] qml: add backgroundVisible indicator property to IconToolButton
Fatih Uzunoglu
git at videolan.org
Mon Aug 10 12:10:01 CEST 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul 30 00:04:28 2020 +0300| [e9ea05fd698c6f41124148de6171cd1a93ce7e5c] | committer: Pierre Lamot
qml: add backgroundVisible indicator property to IconToolButton
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9ea05fd698c6f41124148de6171cd1a93ce7e5c
---
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
More information about the vlc-commits
mailing list