QMimeData: export URLs as text too
authorDavid Faure <faure@kde.org>
Sat, 11 Feb 2012 01:13:22 +0000 (02:13 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 17 Feb 2012 04:26:47 +0000 (05:26 +0100)
commit1209fccaf7c78f46f7d30cf729ed34e12e295e62
tree9f6b52b604ad4d7c7f265c884d0ee7babb3e4520
parentcb8445f0323b0eefbb04f1d8adad81a00b53abd8
QMimeData: export URLs as text too

This allows to drop or paste them into lineedits and text widgets
(including such widgets in non-Qt applications)

Implementation note: this is done on-demand rather than in setUrls
so that it's still possible to setText explicitely; the new code
is only a fallback for when no text/plain data is available.

Change-Id: Ie90c43a30bfa64a6047b627e7351d20bf5ec8e03
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/kernel/qmimedata.cpp
tests/auto/corelib/kernel/qmimedata/tst_qmimedata.cpp