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

bool QMimeData::hasFormat ( const QString mimetype  )  const [virtual]

Returns true if the object can return data for the MIME type specified by mimetype; otherwise returns false.

Definition at line 407 of file qmimedata.cpp.

References QStringList::contains(), and formats().

Referenced by QTextEdit::canInsertFromMimeData(), QLineEdit::dragMoveEvent(), QAbstractTableModel::dropMimeData(), QAbstractListModel::dropMimeData(), QAbstractItemModel::dropMimeData(), hasColor(), hasHtml(), hasImage(), hasText(), hasUrls(), and QTextEdit::insertFromMimeData().

{
    return formats().contains(mimetype);
}


Generated by  Doxygen 1.6.0   Back to index