[vlc-commits] qml: remove unused PLItemFooter

Fatih Uzunoglu git at videolan.org
Mon Aug 10 12:10:04 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul 30 00:04:31 2020 +0300| [a0588f1158def43ffb4ed4648eede05482b0aa7e] | committer: Pierre Lamot

qml: remove unused PLItemFooter

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

 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(-)

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 6ce02865c6..a972206aeb 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -642,7 +642,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 c6eaa47bf9..b545e1b8dd 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -265,7 +265,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>



More information about the vlc-commits mailing list