[vlc-devel] [PATCH 08/16] qml: remove unused PLItemFooter

Fatih Uzunoglu fuzun54 at outlook.com
Wed Jul 29 23:04:31 CEST 2020


---
 modules/gui/qt/Makefile.am                   |  1 -
 modules/gui/qt/playlist/qml/PLItemFooter.qml | 93 --------------------
 modules/gui/qt/vlc.qrc                       |  1 -
 3 files changed, 95 deletions(-)
 delete mode 100644 modules/gui/qt/playlist/qml/PLItemFooter.qml

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index b02cb7440d..882104553a 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -640,7 +640,6 @@ libqt_plugin_la_QML = \
 	gui/qt/player/qml/TrackInfo.qml \
 	gui/qt/player/qml/VolumeWidget.qml \
 	gui/qt/playlist/qml/PLItem.qml \
-	gui/qt/playlist/qml/PLItemFooter.qml \
 	gui/qt/playlist/qml/PlaylistListView.qml \
 	gui/qt/playlist/qml/PlaylistMainView.qml \
 	gui/qt/playlist/qml/PlaylistMenu.qml \
diff --git a/modules/gui/qt/playlist/qml/PLItemFooter.qml b/modules/gui/qt/playlist/qml/PLItemFooter.qml
deleted file mode 100644
index f9ba37e257..0000000000
--- a/modules/gui/qt/playlist/qml/PLItemFooter.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * Copyright (C) 2019 VLC authors and VideoLAN
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * ( at your option ) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-import QtQuick 2.11
-
-import "qrc:///style/"
-
-Item {
-    id: foot
-
-    property int listCount
-
-    signal dropURLAtEnd(var urlList)
-    signal moveAtEnd()
-
-    property bool _dropVisible: false
-    property bool dropIndicatorBottom: false
-
-    width: parent.width
-    height: Math.max(VLCStyle.icon_normal, view.height - y)
-
-    Loader {
-        active: !dropIndicatorBottom
-        width: parent.width
-        anchors.top: parent.top
-        antialiasing: true
-        height: 1
-        visible: foot._dropVisible
-
-        sourceComponent: Rectangle {
-            color: VLCStyle.colors.accent
-        }
-    }
-
-    DropArea {
-        anchors { fill: parent }
-        onEntered: {
-            if(drag.source.model.index === foot.listCount - 1)
-                return
-
-            foot._dropVisible = true
-        }
-        onExited: {
-            if(drag.source.model.index === foot.listCount - 1)
-                return
-
-            foot._dropVisible = false
-        }
-        onDropped: {
-            if(drag.source.model.index === foot.listCount - 1)
-                return
-
-            if (drop.hasUrls) {
-                //force conversion to an actual list
-                var urlList = []
-                for ( var url in drop.urls)
-                    urlList.push(drop.urls[url])
-                dropURLAtEnd(urlList)
-            } else {
-                moveAtEnd()
-            }
-            drop.accept()
-            foot._dropVisible = false
-        }
-    }
-
-    Loader {
-        active: dropIndicatorBottom
-        width: parent.width
-        anchors.top: parent.bottom
-        antialiasing: true
-        height: 1
-        visible: foot._dropVisible
-
-        sourceComponent: Rectangle {
-            color: VLCStyle.colors.accent
-        }
-    }
-}
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index fb753306ec..a5f6febbd9 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -263,7 +263,6 @@
         <file alias="PLItem.qml">playlist/qml/PLItem.qml</file>
         <file alias="PlaylistListView.qml">playlist/qml/PlaylistListView.qml</file>
         <file alias="PlaylistMenu.qml">playlist/qml/PlaylistMenu.qml</file>
-        <file alias="PLItemFooter.qml">playlist/qml/PLItemFooter.qml</file>
         <file alias="PlaylistMainView.qml">playlist/qml/PlaylistMainView.qml</file>
         <file alias="PlaylistToolbar.qml">playlist/qml/PlaylistToolbar.qml</file>
     </qresource>
-- 
2.25.1



More information about the vlc-devel mailing list