Update Drop Site Example docs: mention the new markdown support

Amends 4edcea762d9ce334c4c1a78234c90c118b81da87

Change-Id: Ide3e7a67b6604d07b76edcfe484c8d29e4e848fb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Shawn Rutledge 2020-12-01 15:35:18 +01:00
parent 2e0f7117b6
commit 8e74ee0791

View File

@ -103,7 +103,7 @@
\snippet draganddrop/dropsite/droparea.cpp dropEvent() function part1
The \c mimeData object can contain one of the following objects: an image,
HTML text, plain text, or a list of URLs.
HTML text, Markdown text, plain text, or a list of URLs.
\snippet draganddrop/dropsite/droparea.cpp dropEvent() function part2
@ -113,6 +113,9 @@
\li If \c mimeData contains HTML, we display it with
\l{QLabel::setText()}{setText()} and set \c{DropArea}'s text format
as Qt::RichText.
\li If \c mimeData contains Markdown, we display it with
\l{QLabel::setText()}{setText()} and set \c{DropArea}'s text format
as Qt::MarkdownText.
\li If \c mimeData contains plain text, we display it with
\l{QLabel::setText()}{setText()} and set \c{DropArea}'s text format
as Qt::PlainText. In the event that \c mimeData contains URLs, we