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

Qt::DropActions PiecesModel::supportedDropActions (  ) const [virtual]
Since:
4.2

Returns the drop actions supported by this model.

The default implementation returns Qt::CopyAction. Reimplement this function if you wish to support additional actions. Note that you must also reimplement the dropMimeData() function to handle the additional operations.

See also:
dropMimeData(), Qt::DropActions, {Using Drag and Drop with Item Views}

Reimplemented from QAbstractItemModel.

Definition at line 187 of file piecesmodel.cpp.

{
    return Qt::CopyAction | Qt::MoveAction;
}

Generated by  Doxygen 1.6.0   Back to index