[vlc-devel] [PATCH 12/30] qml: don't base MusicTrackListDisplay on MainInterface.MainTableView
Prince Gupta
guptaprince8832 at gmail.com
Mon Dec 14 14:27:50 CET 2020
this is used in another places in non Maininterface contexts, directly set MiniPlayerBottomMargin in MusicTracksDisplay
---
modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml | 3 +--
modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
index fb5c595a84..89d6955e82 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
@@ -24,10 +24,9 @@ import org.videolan.medialib 0.1
import "qrc:///util/" as Util
import "qrc:///widgets/" as Widgets
-import "qrc:///main/" as MainInterface
import "qrc:///style/"
-MainInterface.MainTableView {
+Widgets.KeyNavigableTableView {
id: root
property var sortModelSmall: [
diff --git a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
index 6a96b364ab..6a0ba1bfb3 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
@@ -21,6 +21,7 @@ import org.videolan.medialib 0.1
import "qrc:///style/"
import "qrc:///widgets/" as Widgets
+import "qrc:///main/" as MainInterface
Widgets.NavigableFocusScope {
id: root
@@ -39,6 +40,8 @@ Widgets.NavigableFocusScope {
else
tracklistdisplay_id.currentIndex = 0;
}
+ footer: MainInterface.MiniPlayerBottomMargin {
+ }
}
EmptyLabel {
--
2.25.1
More information about the vlc-devel
mailing list