[vlc-devel] [PATCH 4/5] qml: fix grid view expand section beeing visible while no item is expanded
Pierre Lamot
pierre at videolabs.io
Thu Jun 13 18:44:14 CEST 2019
---
modules/gui/qt/qml/utils/ExpandGridView.qml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/qml/utils/ExpandGridView.qml b/modules/gui/qt/qml/utils/ExpandGridView.qml
index ad18c9b582..92e2eef682 100644
--- a/modules/gui/qt/qml/utils/ExpandGridView.qml
+++ b/modules/gui/qt/qml/utils/ExpandGridView.qml
@@ -303,7 +303,7 @@ NavigableFocusScope {
animateRetractItem.start()
}
- PropertyAnimation {
+ NumberAnimation {
id: animateRetractItem;
target: flickable.expandItem;
properties: "height"
@@ -319,7 +319,7 @@ NavigableFocusScope {
}
}
- PropertyAnimation {
+ NumberAnimation {
id: animateExpandItem;
target: flickable.expandItem;
properties: "height"
@@ -328,6 +328,13 @@ NavigableFocusScope {
from: 0
}
+ Binding {
+ target: flickable.expandItem
+ property: "visible"
+ value: flickable.expandItem.height > 0
+ delayed: true
+ }
+
function setCurrentItemFocus() {
var child
if (currentIndex in idChildrenMap)
--
2.17.1
More information about the vlc-devel
mailing list