Changeset 472
- Timestamp:
- Jan 25, 2010, 5:56:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/gui/kernel/qdnd_pm.cpp ¶
r471 r472 557 557 ((dragData->supportedOps & DO_LINKABLE) && realOp == DO_LINK); 558 558 dragData->lastDragOverOp = realOp; 559 dropReply = dragData->sourceAllowsOp ? DOR_DROP : DOR_NODROP; 559 // make sure the default accepted state for the next event 560 // correlates with the set of supported operations 561 if (dropReply == DOR_DROP) 562 dropReply = dragData->sourceAllowsOp ? DOR_DROP : DOR_NODROP; 560 563 } 561 564 … … 583 586 dropReply = DOR_NODROP; 584 587 } 588 DEBUG(() << "DM_DRAGOVER: QDragEnterEvent: accepted" << dee.isAccepted()); 585 589 } 586 590 … … 604 608 dropReply = DOR_NODROP; 605 609 } 610 DEBUG(() << "DM_DRAGOVER: QDragMoveEvent: accepted" << dme.isAccepted()); 606 611 } 607 612 … … 611 616 DrgFreeDraginfo(info); 612 617 613 DEBUG(("DM_DRAGOVER: return %08 lx default %08lx",618 DEBUG(("DM_DRAGOVER: return %08x default %08x", 614 619 dropReply, toPmDragDropOp(dragData->lastAction))); 615 620 return MRFROM2SHORT(dropReply, toPmDragDropOp(dragData->lastAction));
Note:
See TracChangeset
for help on using the changeset viewer.