Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QDropEvent::QDropEvent ( const QPoint pos,
Qt::DropActions  actions,
const QMimeData data,
Qt::MouseButtons  buttons,
Qt::KeyboardModifiers  modifiers,
Type  type = Drop 
)

Constructs a drop event of a certain type corresponding to a drop at the point specified by pos in the destination widget's coordinate system.

The actions indicate which types of drag and drop operation can be performed, and the drag data is stored as MIME-encoded data in data.

The states of the mouse buttons and keyboard modifiers at the time of the drop are specified by buttons and modifiers.

Definition at line 1958 of file qevent.cpp.

References QEvent::ignore().

    : QEvent(type), p(pos), mouseState(buttons),
      modState(modifiers), act(actions),
      drop_action(Qt::CopyAction),
      mdata(data)
{
    default_action = QDragManager::self()->defaultAction(act, modifiers);
    ignore();
}


Generated by  Doxygen 1.6.0   Back to index