[vlc-commits] [Git][videolan/vlc][master] qml: rename `KeyNavigableListView.qml` and `KeyNavigableTableView.qml`

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Aug 8 18:26:27 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
220432d6 by Fatih Uzunoglu at 2024-08-08T17:57:25+00:00
qml: rename `KeyNavigableListView.qml` and `KeyNavigableTableView.qml`

... into `ListViewExt.qml` and `TableViewExt.qml`, respectively.

These files have been doing more than custom key navigation for
a long time. It is now time to give them a more generic name.

- - - - -


13 changed files:

- modules/gui/qt/Makefile.am
- modules/gui/qt/maininterface/qml/MainTableView.qml
- modules/gui/qt/medialibrary/qml/MusicArtist.qml
- modules/gui/qt/medialibrary/qml/MusicArtistsAlbums.qml
- modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
- modules/gui/qt/medialibrary/qml/UrlListDisplay.qml
- modules/gui/qt/meson.build
- modules/gui/qt/network/qml/BrowseDeviceView.qml
- modules/gui/qt/network/qml/ServicesManage.qml
- modules/gui/qt/player/qml/TracksListPage.qml
- modules/gui/qt/playlist/qml/PlaylistListView.qml
- modules/gui/qt/widgets/qml/KeyNavigableListView.qml → modules/gui/qt/widgets/qml/ListViewExt.qml
- modules/gui/qt/widgets/qml/KeyNavigableTableView.qml → modules/gui/qt/widgets/qml/TableViewExt.qml


Changes:

=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -1174,8 +1174,8 @@ libqml_module_widgets_a_QML = \
 	widgets/qml/IconToolButton.qml \
 	widgets/qml/IconTrackButton.qml \
 	widgets/qml/ImageToolButton.qml \
-	widgets/qml/KeyNavigableListView.qml \
-	widgets/qml/KeyNavigableTableView.qml \
+	widgets/qml/ListViewExt.qml \
+	widgets/qml/TableViewExt.qml \
 	widgets/qml/TableViewDelegate.qml \
 	widgets/qml/TableRowDelegate.qml \
 	widgets/qml/TableHeaderDelegate.qml \


=====================================
modules/gui/qt/maininterface/qml/MainTableView.qml
=====================================
@@ -21,7 +21,7 @@ import QtQuick
 import VLC.Widgets as Widgets
 import VLC.Style
 
-Widgets.KeyNavigableTableView {
+Widgets.TableViewExt {
     id: root
 
     displayMarginEnd: g_mainDisplay.displayMargin


=====================================
modules/gui/qt/medialibrary/qml/MusicArtist.qml
=====================================
@@ -142,7 +142,7 @@ FocusScope {
 
                     spacing: VLCStyle.tableView_spacing - VLCStyle.margin_xxxsmall
 
-                    Widgets.KeyNavigableListView {
+                    Widgets.ListViewExt {
                         id: albumsList
 
                         x: VLCStyle.margin_xlarge - VLCStyle.gridItemSelectedBorder


=====================================
modules/gui/qt/medialibrary/qml/MusicArtistsAlbums.qml
=====================================
@@ -138,7 +138,7 @@ FocusScope {
 
         spacing: 0
 
-        Widgets.KeyNavigableListView {
+        Widgets.ListViewExt {
             id: artistList
 
             model: artistModel


=====================================
modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
=====================================
@@ -26,7 +26,7 @@ import VLC.Util
 import VLC.Widgets as Widgets
 import VLC.Style
 
-Widgets.KeyNavigableTableView {
+Widgets.TableViewExt {
     id: root
 
     // Properties


=====================================
modules/gui/qt/medialibrary/qml/UrlListDisplay.qml
=====================================
@@ -27,7 +27,7 @@ import VLC.Widgets as Widgets
 import VLC.Style
 
 
-Widgets.KeyNavigableTableView {
+Widgets.TableViewExt {
     id: listView_id
 
     readonly property bool isSearchable: false


=====================================
modules/gui/qt/meson.build
=====================================
@@ -831,8 +831,8 @@ qml_modules += {
         'widgets/qml/IconToolButton.qml',
         'widgets/qml/IconTrackButton.qml',
         'widgets/qml/ImageToolButton.qml',
-        'widgets/qml/KeyNavigableListView.qml',
-        'widgets/qml/KeyNavigableTableView.qml',
+        'widgets/qml/ListViewExt.qml',
+        'widgets/qml/TableViewExt.qml',
         'widgets/qml/TableViewDelegate.qml',
         'widgets/qml/TableRowDelegate.qml',
         'widgets/qml/TableHeaderDelegate.qml',


=====================================
modules/gui/qt/network/qml/BrowseDeviceView.qml
=====================================
@@ -227,7 +227,7 @@ FocusScope {
     Component {
         id: list
 
-        Widgets.KeyNavigableTableView {
+        Widgets.TableViewExt {
             id: listView
 
             // Properties


=====================================
modules/gui/qt/network/qml/ServicesManage.qml
=====================================
@@ -24,7 +24,7 @@ import VLC.Widgets as Widgets
 import VLC.Style
 import VLC.Network
 
-Widgets.KeyNavigableListView {
+Widgets.ListViewExt {
     id: servicesView
 
     // required by g_root to indicate view with 'grid' or 'list' mode


=====================================
modules/gui/qt/player/qml/TracksListPage.qml
=====================================
@@ -196,7 +196,7 @@ RowLayout {
                     }
                 }
 
-                Widgets.KeyNavigableListView {
+                Widgets.ListViewExt {
                     id: tracksList
 
                     model: tracksListContainer.tracksModel


=====================================
modules/gui/qt/playlist/qml/PlaylistListView.qml
=====================================
@@ -198,7 +198,7 @@ T.Pane {
             }
         }
 
-        Widgets.KeyNavigableListView {
+        Widgets.ListViewExt {
             id: listView
 
             Layout.fillWidth: true


=====================================
modules/gui/qt/widgets/qml/KeyNavigableListView.qml → modules/gui/qt/widgets/qml/ListViewExt.qml
=====================================


=====================================
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml → modules/gui/qt/widgets/qml/TableViewExt.qml
=====================================
@@ -237,7 +237,7 @@ FocusScope {
         }
     }
 
-    KeyNavigableListView {
+    ListViewExt {
         id: view
 
         anchors.fill: parent



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/220432d63aa8ee69ebf1958cf8b703372ea5c251

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/220432d63aa8ee69ebf1958cf8b703372ea5c251
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list