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

QString QMimeData::text (  )  const

Returns a plain text representation of the data.

Definition at line 275 of file qmimedata.cpp.

References QVariant::toString().

Referenced by QLineEdit::dropEvent(), QTextEdit::insertFromMimeData(), and QClipboard::text().

{
    Q_D(const QMimeData);
    QVariant data = d->retrieveTypedData(QLatin1String("text/plain"), QVariant::String);
    return data.toString();
}


Generated by  Doxygen 1.6.0   Back to index