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/fridgemagnets/dragwidget.cpp

    r2 r468  
    145145        newLabel->setAttribute(Qt::WA_DeleteOnClose);
    146146
    147         if (event->source() == this) {
     147        if () {
    148148            event->setDropAction(Qt::MoveAction);
    149149            event->accept();
     
    196196
    197197//! [16]
    198     QDrag *drag = new QDrag(this);
     198    QDrag *drag = new QDrag();
    199199    drag->setMimeData(mimeData);
    200200    drag->setPixmap(*child->pixmap());
Note: See TracChangeset for help on using the changeset viewer.