feat(qbz-qt): phase 17 — PlaylistView 1:1 + drag & drop as Slint
Full playlist surface: header with owner/foreign gating, play/shuffle, favorite/follow optimistic, copy-to-library, pin, rename, delete, per-row remove for owners, search filter, full sort set, custom-order drag reorder persisted per user. Sidebar and every playlist card navigate; card overlay/menu actions un-stubbed. Drag & drop per the Slint gesture: row-body press-drag (>6px) from album/playlist/search/ library rows, window-top ghost pill, sidebar playlist rows drop-hot highlight, drop -> add_tracks_to_playlist + reload reconcile; in-list release reorders. Round-trip proven end-to-end on a throwaway playlist (create -> drag -> drop -> refetch shows track -> delete). km
This commit is contained in:
28 files changed
+2365
-17
No files matched your search
@@ -146,7 +146,8 @@ Rectangle {
|
||||
: QbzBridge.currentView === "album" ? "AlbumView.qml"
|
||||
: QbzBridge.currentView === "artist" ? "ArtistView.qml"
|
||||
: QbzBridge.currentView === "settings" ? "SettingsView.qml"
|
||||
: QbzBridge.currentView === "search" ? "SearchView.qml" : ""
|
||||
: QbzBridge.currentView === "search" ? "SearchView.qml"
|
||||
: QbzBridge.currentView === "playlist" ? "PlaylistView.qml" : ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,4 +242,39 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- Drag ghost (DragGhost.slint, phase 17) -----------------------------
|
||||
// The dark pill that follows the cursor while tracks are dragged onto
|
||||
// the sidebar: "N tracks" for a group, or title + "artist · album" for
|
||||
// one. Visual only (never blocks the pointer).
|
||||
Rectangle {
|
||||
visible: QbzBridge.dragActive
|
||||
x: QbzBridge.dragX + 10
|
||||
y: QbzBridge.dragY + 14
|
||||
width: ghostCol.width + 28
|
||||
height: ghostCol.height + 16
|
||||
radius: 8
|
||||
color: "#e01e1e28"
|
||||
border.width: 1
|
||||
border.color: "#1fffffff"
|
||||
Column {
|
||||
id: ghostCol
|
||||
anchors.centerIn: parent
|
||||
spacing: 2
|
||||
Text {
|
||||
text: QbzBridge.dragCount > 1
|
||||
? QbzBridge.dragCount + " " + QbzBridge.tr("tracks")
|
||||
: QbzBridge.dragTitle
|
||||
color: "#ffffff"
|
||||
font.pixelSize: 12
|
||||
font.weight: theme.weightMedium
|
||||
}
|
||||
Text {
|
||||
visible: QbzBridge.dragCount === 1 && QbzBridge.dragSubtitle !== ""
|
||||
text: QbzBridge.dragSubtitle
|
||||
color: "#8cffffff"
|
||||
font.pixelSize: 10
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user