From c6f5c869a080b6dda7a2c928820dea856502f05e Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 27 Apr 2021 09:56:32 +0200 Subject: Doc: Fix documentation warnings * Restore (parts of) snippets.pro files for quoting in the documentation * Remove references to removed method, QNearFieldManager::registerNdefMessageHandler() Task-number: QTBUG-91875 Change-Id: Ib88c71da3426826b379832003a29fffc255aaaf5 Reviewed-by: Andreas Buhr Reviewed-by: Paul Wicking Reviewed-by: Alex Blasche --- examples/nfc/annotatedurl/doc/src/annotatedurl.qdoc | 3 +-- src/bluetooth/doc/snippets/snippets.pro | 3 +++ src/nfc/doc/snippets/snippets.pro | 3 +++ src/nfc/qndeffilter.cpp | 5 ++--- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 src/bluetooth/doc/snippets/snippets.pro create mode 100644 src/nfc/doc/snippets/snippets.pro diff --git a/examples/nfc/annotatedurl/doc/src/annotatedurl.qdoc b/examples/nfc/annotatedurl/doc/src/annotatedurl.qdoc index 7fda040f..db165852 100644 --- a/examples/nfc/annotatedurl/doc/src/annotatedurl.qdoc +++ b/examples/nfc/annotatedurl/doc/src/annotatedurl.qdoc @@ -58,8 +58,7 @@ the contents of the NDEF message. \section1 AnnotatedUrl Handler Implementation NFC messages read by the \c QNearFieldManager are forwarded to -AnnotatedUrl::handleMessage. The callback signature details can be -read in \l{QNearFieldManager::registerNdefMessageHandler}. +AnnotatedUrl::handleMessage. \snippet annotatedurl/annotatedurl.cpp handleMessage 1 diff --git a/src/bluetooth/doc/snippets/snippets.pro b/src/bluetooth/doc/snippets/snippets.pro new file mode 100644 index 00000000..7ad0c443 --- /dev/null +++ b/src/bluetooth/doc/snippets/snippets.pro @@ -0,0 +1,3 @@ +#! [contacts project modification] +QT += bluetooth +#! [contacts project modification] diff --git a/src/nfc/doc/snippets/snippets.pro b/src/nfc/doc/snippets/snippets.pro new file mode 100644 index 00000000..56a37a93 --- /dev/null +++ b/src/nfc/doc/snippets/snippets.pro @@ -0,0 +1,3 @@ +#! [project modification] +QT += nfc +#! [project modification] diff --git a/src/nfc/qndeffilter.cpp b/src/nfc/qndeffilter.cpp index 486ac633..eea94e8c 100644 --- a/src/nfc/qndeffilter.cpp +++ b/src/nfc/qndeffilter.cpp @@ -51,9 +51,8 @@ QT_BEGIN_NAMESPACE \inmodule QtNfc \since 5.2 - The QNdefFilter encapsulates the structure of an NDEF message and is used by - QNearFieldManager::registerNdefMessageHandler() to match NDEF message that have a particular - structure. + The QNdefFilter encapsulates the structure of an NDEF message and is used for + matching messages that have a particular structure. The following filter matches NDEF messages that contain a single smart poster record: -- cgit v1.2.3