Skip to content
Snippets Groups Projects
Commit b2358bbf authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qt: fix artwork info widget can not be dragged with Qt 6.2

parent 3b5c92f3
No related branches found
No related tags found
1 merge request!5707qt: fix artwork info widget can not be dragged with Qt 6.2
Pipeline #501574 failed with stages
in 25 minutes and 39 seconds
......@@ -107,13 +107,29 @@ AbstractButton {
indexes: [0]
}
DragHandler {
target: null
onActiveChanged: {
if (active) {
dragItem.Drag.active = true
} else {
dragItem.Drag.drop()
// TODO: Qt bug 6.2: QTBUG-103604
Item {
anchors.fill: parent
TapHandler {
gesturePolicy: TapHandler.ReleaseWithinBounds // TODO: Qt 6.2 bug: Use TapHandler.DragThreshold
grabPermissions: TapHandler.CanTakeOverFromHandlersOfDifferentType | TapHandler.ApprovesTakeOverByAnything
onTapped: History.push(["player"])
}
DragHandler {
target: null
grabPermissions: PointerHandler.CanTakeOverFromHandlersOfDifferentType | PointerHandler.ApprovesTakeOverByAnything
onActiveChanged: {
if (active) {
dragItem.Drag.active = true
} else {
dragItem.Drag.drop()
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment