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

QByteArray QMimeData::data ( const QString mimeType ) const [inherited]

Returns the data stored in the object in the format described by the MIME type specified by mimeType.

Reimplemented in QDragMime.

Definition at line 521 of file qmimedata.cpp.

References QVariant::toByteArray().

Referenced by BookmarksModel::dropMimeData(), QStandardItemModel::dropMimeData(), PiecesModel::dropMimeData(), QAbstractTableModel::dropMimeData(), DragDropModel::dropMimeData(), QAbstractListModel::dropMimeData(), DragDropListModel::dropMimeData(), QAbstractItemModel::dropMimeData(), QDropEvent::encodedData(), QMimeDataWrapper::encodedData(), QInternalMimeData::retrieveData(), QClipboard::text(), ClipWindow::updateClipboard(), ClipWindow::updateData(), and DropSiteWindow::updateFormatsTable().

{
    Q_D(const QMimeData);
    QVariant data = d->retrieveTypedData(mimeType, QVariant::ByteArray);
    return data.toByteArray();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index