QMimeData/Docs: include the fact that some functions may convert
QMimeDataPrivate::retrieveTypedData() converts if the target MIME type is text/plain or if the target meta type is QByteArray. Fixes: QTBUG-127296 Change-Id: I4878533dcb2d4b3e8efefffd17e49ade9fbb32f8 Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit 05aaf2a684e49d6034f3860fb55a70e75de61e49) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9c64b6a201
commit
5f46669178
@ -374,8 +374,9 @@ bool QMimeData::hasUrls() const
|
||||
|
||||
|
||||
/*!
|
||||
Returns a plain text (MIME type \c text/plain) representation of
|
||||
the data.
|
||||
Returns the plain text (MIME type \c text/plain) representation of
|
||||
the data if this object contains plain text. If it contains some other
|
||||
content, this function makes a best effort to convert it to plain text.
|
||||
|
||||
\sa hasText(), html(), data()
|
||||
*/
|
||||
@ -541,7 +542,11 @@ bool QMimeData::hasColor() const
|
||||
|
||||
/*!
|
||||
Returns the data stored in the object in the format described by
|
||||
the MIME type specified by \a mimeType.
|
||||
the MIME type specified by \a mimeType. If this object does not contain
|
||||
data for the \a mimeType MIME type (see hasFormat()), this function may
|
||||
perform a best effort conversion to it.
|
||||
|
||||
\sa hasFormat(), setData()
|
||||
*/
|
||||
QByteArray QMimeData::data(const QString &mimeType) const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user