[vlc-commits] qml: provide default modelCount value in NavigableList/GridView
Pierre Lamot
git at videolan.org
Thu Feb 20 13:56:35 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Feb 12 15:18:54 2020 +0100| [cbb6c2ba3436c755e1faf7e428c207c9b8f5f888] | committer: Jean-Baptiste Kempf
qml: provide default modelCount value in NavigableList/GridView
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cbb6c2ba3436c755e1faf7e428c207c9b8f5f888
---
modules/gui/qt/widgets/qml/KeyNavigableGridView.qml | 2 +-
modules/gui/qt/widgets/qml/KeyNavigableListView.qml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml b/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
index b71ca5555e..dd44f53b1d 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
@@ -23,7 +23,7 @@ import "qrc:///util/KeyHelper.js" as KeyHelper
NavigableFocusScope {
id: gridview_id
- property int modelCount: 0
+ property int modelCount: view.count
signal selectionUpdated( int keyModifiers, int oldIndex,int newIndex )
signal selectAll()
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index d7a9664a12..7f0159b3b1 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -24,7 +24,7 @@ import "qrc:///util/KeyHelper.js" as KeyHelper
NavigableFocusScope {
id: listview_id
- property int modelCount: 0
+ property int modelCount: view.count
signal selectionUpdated( int keyModifiers, int oldIndex,int newIndex )
signal selectAll()
More information about the vlc-commits
mailing list