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_toolbar.cpp

    r2 r372  
    122122    case QEvent::ContextMenu:
    123123        return handleContextMenuEvent(static_cast<QContextMenuEvent*>(event));
     124
    124125    case QEvent::DragEnter:
    125126    case QEvent::DragMove:
     
    129130    case QEvent::Drop:
    130131        return handleDropEvent(static_cast<QDropEvent *>(event));
     132
    131133    case QEvent::MouseButtonPress:
    132134        return handleMousePressEvent(static_cast<QMouseEvent*>(event));
     
    327329}
    328330
     331
    329332bool ToolBarEventFilter::handleDragEnterMoveEvent(QDragMoveEvent *event)
    330333{
     
    400403    return true;
    401404}
     405
    402406
    403407void ToolBarEventFilter::startDrag(const QPoint &pos, Qt::KeyboardModifiers modifiers)
     
    420424    }
    421425
     426
    422427    QDrag *drag = new QDrag(m_toolBar);
    423428    drag->setPixmap(ActionRepositoryMimeData::actionDragPixmap( action));
     
    425430
    426431    if (drag->start(dropAction) == Qt::IgnoreAction) {
     432
     433
     434
    427435        hideDragIndicator();
    428436        if (dropAction == Qt::MoveAction) {
Note: See TracChangeset for help on using the changeset viewer.