Changeset 453 for trunk/src


Ignore:
Timestamp:
Jan 20, 2010, 3:33:10 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: DnD: Fixed: Coordinates of the DnD events were vertically shifted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qdnd_pm.cpp

    r451 r453  
    406406            if (!dragOverWidget)
    407407                dragOverWidget = widget;
     408
     409
    408410
    409411            bool first = dragData->lastDragOverWidget != dragOverWidget;
     
    420422                        if (!dragOverWidget)
    421423                            dragOverWidget = widget;
     424
     425
    422426                    }
    423427                }
     
    582586            pnt.setY(QApplication::desktop()->height() - (pnt.y() + 1));
    583587            pnt = widget->mapFromGlobal(pnt);
    584 
    585             Q_ASSERT(dragData->lastDragOverOp == info->usOperation);
     588            if (dragData->lastDragOverWidget != widget)
     589            );
    586590
    587591            Q_ASSERT(dragData->lastDragOverWidget->acceptDrops());
Note: See TracChangeset for help on using the changeset viewer.