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

QStringList QMimeData::formats (  )  const [virtual]

Returns a list of formats supported by the object. This is a list of MIME types for which the object can return suitable data. The formats in the list are in a priority order.

Definition at line 417 of file qmimedata.cpp.

References QList< T >::at().

Referenced by QDropEvent::format(), hasFormat(), QDropEvent::provides(), and QClipboard::text().

{
    Q_D(const QMimeData);
    QStringList list;
    for (int i=0; i<d->dataList.size(); i++)
        list += d->dataList.at(i).format;
    return list;
}


Generated by  Doxygen 1.6.0   Back to index