vlc | branch: master | Pierre Lamot <pie...@videolabs.io> | Wed Jan 29 14:21:49 
2020 +0100| [764a076ef174f84031e07ac3e9e45e7acfb6ba47] | committer: 
Jean-Baptiste Kempf

qml: expose positionViewAtIndex in KeyNavigable{List|Grid}View

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 modules/gui/qt/widgets/qml/KeyNavigableGridView.qml  | 4 ++++
 modules/gui/qt/widgets/qml/KeyNavigableListView.qml  | 4 ++++
 modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml 
b/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
index cea95a75a5..b71ca5555e 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableGridView.qml
@@ -53,6 +53,10 @@ NavigableFocusScope {
 
     Accessible.role: Accessible.Table
 
+    function positionViewAtIndex(index, mode) {
+        view.positionViewAtIndex(index, mode)
+    }
+
     GridView {
         id: view
 
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml 
b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index 013c16d129..d7a9664a12 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -69,6 +69,10 @@ NavigableFocusScope {
         view.contentX -= Math.min(view.width,view.contentX )
     }
 
+    function positionViewAtIndex(index, mode) {
+        view.positionViewAtIndex(index, mode)
+    }
+
     Component {
         id: sectionHeading
 
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml 
b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index 26d2ed9e5a..ad59f7ff8e 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -55,6 +55,10 @@ NavigableFocusScope {
 
     Accessible.role: Accessible.Table
 
+    function positionViewAtIndex(index, mode) {
+        view.positionViewAtIndex(index, mode)
+    }
+
     Util.SelectableDelegateModel {
         id: delegateModel
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to