Ignore:
Timestamp:
Jan 22, 2010, 6:43:54 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

examples/draganddrop: Be consistent and use children as drag sources everywhere. This in particular makes sure that the visual representation corresponds to the default drop action (Move) [vendor bug].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/draganddrop/draggabletext/dragwidget.cpp

    r2 r468  
    118118        }
    119119
    120         if (event->source() == this) {
     120        if () {
    121121            event->setDropAction(Qt::MoveAction);
    122122            event->accept();
     
    153153    child->render(&pixmap);
    154154
    155     QDrag *drag = new QDrag(this);
     155    QDrag *drag = new QDrag();
    156156    drag->setMimeData(mimeData);
    157157    drag->setPixmap(pixmap);
Note: See TracChangeset for help on using the changeset viewer.