From d62aab12980ee7bbdd784b235d9fbe91144543d2 Mon Sep 17 00:00:00 2001
From: Fatih Uzunoglu <fuzun54@outlook.com>
Date: Fri, 8 Jan 2021 00:36:27 +0300
Subject: [PATCH] qml: rename PLItem.qml to PlaylistDelegate.qml

This makes Playlist directory naming more consistent. It also prevents confusion with the PlaylistItem class in backend.

Signed-off-by: Pierre Lamot <pierre@videolabs.io>
---
 modules/gui/qt/Makefile.am                                      | 2 +-
 .../gui/qt/playlist/qml/{PLItem.qml => PlaylistDelegate.qml}    | 0
 modules/gui/qt/playlist/qml/PlaylistListView.qml                | 2 +-
 modules/gui/qt/vlc.qrc                                          | 2 +-
 po/POTFILES.in                                                  | 2 +-
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename modules/gui/qt/playlist/qml/{PLItem.qml => PlaylistDelegate.qml} (100%)

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 3f5d7cd41922..c3c80515b4c1 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -678,7 +678,7 @@ libqt_plugin_la_QML = \
 	gui/qt/player/qml/TrackInfo.qml \
 	gui/qt/player/qml/VolumeWidget.qml \
 	gui/qt/player/qml/ButtonsLayout.qml \
-	gui/qt/playlist/qml/PLItem.qml \
+	gui/qt/playlist/qml/PlaylistDelegate.qml \
 	gui/qt/playlist/qml/PlaylistDroppable.qml \
 	gui/qt/playlist/qml/PlaylistListView.qml \
 	gui/qt/playlist/qml/PlaylistOverlayMenu.qml \
diff --git a/modules/gui/qt/playlist/qml/PLItem.qml b/modules/gui/qt/playlist/qml/PlaylistDelegate.qml
similarity index 100%
rename from modules/gui/qt/playlist/qml/PLItem.qml
rename to modules/gui/qt/playlist/qml/PlaylistDelegate.qml
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index fc0e8ecea086..136b13b6f5a9 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -340,7 +340,7 @@ Widgets.NavigableFocusScope {
                         }
                     }
 
-                    PLItem {
+                    PlaylistDelegate {
                         /*
                          * implicit variables:
                          *  - model: gives access to the values associated to PlaylistListModel roles
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index eee7cb049a59..b1b99148caaf 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -289,7 +289,7 @@
         <file alias="VLCIcons.qml">style/VLCIcons.qml</file>
     </qresource>
     <qresource prefix="/playlist">
-        <file alias="PLItem.qml">playlist/qml/PLItem.qml</file>
+        <file alias="PlaylistDelegate.qml">playlist/qml/PlaylistDelegate.qml</file>
         <file alias="PlaylistDroppable.qml">playlist/qml/PlaylistDroppable.qml</file>
         <file alias="PlaylistListView.qml">playlist/qml/PlaylistListView.qml</file>
         <file alias="PlaylistOverlayMenu.qml">playlist/qml/PlaylistOverlayMenu.qml</file>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 677f7af478f6..d6efd48d15fb 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -833,7 +833,7 @@ modules/gui/qt/player/qml/ResumeDialog.qml
 modules/gui/qt/player/qml/TeletextWidget.qml
 modules/gui/qt/player/qml/TopBar.qml
 modules/gui/qt/player/qml/VolumeWidget.qml
-modules/gui/qt/playlist/qml/PLItem.qml
+modules/gui/qt/playlist/qml/PlaylistDelegate.qml
 modules/gui/qt/playlist/qml/PlaylistDetachedWindow.qml
 modules/gui/qt/playlist/qml/PlaylistListView.qml
 modules/gui/qt/playlist/qml/PlaylistOverlayMenu.qml
-- 
GitLab