From 2f016f8295738fa7948061d158d7ca219228c8c0 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 21 Mar 2022 14:40:07 -0500 Subject: [PATCH] adding backgrounds to drag of songs --- src/qml/presenter/Library.qml | 5 ++--- src/qml/presenter/SongEditor.qml | 10 ---------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/qml/presenter/Library.qml b/src/qml/presenter/Library.qml index 49e642b..e0013b9 100644 --- a/src/qml/presenter/Library.qml +++ b/src/qml/presenter/Library.qml @@ -210,9 +210,8 @@ Item { if (songDragHandler.drag.active) { dragItemTitle = title; dragItemType = "song"; - dragItemBackgroundType = "image"; - dragItemBackground = ""; - /* showPassiveNotification(dragSongTitle) */ + dragItemBackgroundType = backgroundType; + dragItemBackground = background; } else { songListItem.Drag.drop() } diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index 04105be..2b5fd47 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -206,16 +206,6 @@ Item { Controls.SplitView.preferredWidth: 700 Controls.SplitView.minimumWidth: 300 - /* Rectangle { */ - /* id: slideBar */ - /* color: Kirigami.Theme.highlightColor */ - - /* Layout.preferredWidth: 500 */ - /* Layout.preferredHeight: songTitleField.height */ - /* Layout.rightMargin: 20 */ - /* Layout.leftMargin: 20 */ - /* } */ - Presenter.SlideEditor { id: slideEditor Layout.preferredWidth: 500