Ignore:
Timestamp:
Dec 2, 2009, 4:30:02 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

tools: Patched qdesigner to make it compile without Drag&Drop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/designer/src/lib/shared/qdesigner_dnditem.cpp

    r2 r372  
    154154        drag->setPixmap(QPixmap::fromImage(image));
    155155#else
     156
    156157        drag->setPixmap(widgetPixmap);
     158
    157159#endif
    158160    }
     
    189191        QPixmap pixmap = QPixmap::fromImage(image);
    190192        pixmap.setMask(mask);
     193
    191194        drag->setPixmap(pixmap);
     195
    192196    }
    193197        break;
     
    197201    m_globalStartPos =  m_items.first()->decoration()->pos() +  m_items.first()->hotSpot();
    198202    m_hotSpot = m_globalStartPos - decorationTopLeft;
     203
    199204    drag->setHotSpot(m_hotSpot);
    200205
    201206    drag->setMimeData(this);
     207
    202208}
    203209
     
    219225        return Qt::IgnoreAction;
    220226
     227
    221228    QDrag *drag = new QDrag(dragSource);
    222229    QDesignerMimeData *mimeData = new QDesignerMimeData(items, drag);
     
    237244
    238245    return executedAction;
     246
     247
     248
    239249}
    240250
     
    270280void QDesignerMimeData::acceptEventWithAction(Qt::DropAction desiredAction, QDropEvent *e)
    271281{
     282
    272283    if (e->proposedAction() == desiredAction) {
    273284        e->acceptProposedAction();
     
    276287        e->accept();
    277288    }
     289
    278290}
    279291
Note: See TracChangeset for help on using the changeset viewer.