Cocoa: Support DnD to the Trash
Map Qt:MoveAction to NSDragOperationDelete, in addition to the existing NSDragOperationMove mapping. From the point of view of the source there is no difference between Move and Delete; the source copy should be deleted. Task-number: QTBUG-63794 Change-Id: Iea5abe31efe0320dad150d243544f25167b3d18c Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
c223fdd917
commit
f5c3d48c99
@ -91,6 +91,7 @@ struct dndenum_mapper
|
||||
static dndenum_mapper dnd_enums[] = {
|
||||
{ NSDragOperationLink, Qt::LinkAction, true },
|
||||
{ NSDragOperationMove, Qt::MoveAction, true },
|
||||
{ NSDragOperationDelete, Qt::MoveAction, true },
|
||||
{ NSDragOperationCopy, Qt::CopyAction, true },
|
||||
{ NSDragOperationGeneric, Qt::CopyAction, false },
|
||||
{ NSDragOperationEvery, Qt::ActionMask, false },
|
||||
|
Loading…
x
Reference in New Issue
Block a user