From 8e74ee07913c9227529b7e223671ec9571b79b38 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 1 Dec 2020 15:35:18 +0100 Subject: [PATCH] Update Drop Site Example docs: mention the new markdown support Amends 4edcea762d9ce334c4c1a78234c90c118b81da87 Change-Id: Ide3e7a67b6604d07b76edcfe484c8d29e4e848fb Reviewed-by: Friedemann Kleint --- examples/widgets/doc/dropsite.qdoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/widgets/doc/dropsite.qdoc b/examples/widgets/doc/dropsite.qdoc index d8d09612f6d..720d001525f 100644 --- a/examples/widgets/doc/dropsite.qdoc +++ b/examples/widgets/doc/dropsite.qdoc @@ -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