[vlc-commits] qml: prefer alias rather than property binding in ExpandGridView

Pierre Lamot git at videolan.org
Fri Sep 6 18:01:54 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Aug 27 14:46:04 2019 +0200| [12469396d5064221e125a24f58bcb5c788225716] | committer: Jean-Baptiste Kempf

qml: prefer alias rather than property binding in  ExpandGridView

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12469396d5064221e125a24f58bcb5c788225716
---

 modules/gui/qt/qml/utils/ExpandGridView.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/utils/ExpandGridView.qml b/modules/gui/qt/qml/utils/ExpandGridView.qml
index aabeb4c9d2..e1851c629d 100644
--- a/modules/gui/qt/qml/utils/ExpandGridView.qml
+++ b/modules/gui/qt/qml/utils/ExpandGridView.qml
@@ -35,8 +35,8 @@ NavigableFocusScope {
     property int modelCount: 0
 
     property int currentIndex: 0
-    property real contentHeight: flickable.contentHeight
-    property real contentWidth: flickable.contentWidth
+    property alias contentHeight: flickable.contentHeight
+    property alias contentWidth: flickable.contentWidth
     property alias contentX: flickable.contentX
     property bool isSingleRow: false
     property bool isAnimating: animateRetractItem.running || animateExpandItem.running



More information about the vlc-commits mailing list