diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-03-13 16:27:29 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-03-15 15:04:36 +0000 |
commit | ef9043ea139b2c383c00772a7140be5837e732a8 (patch) | |
tree | 8a9fc99d0a918bf7920b41d204b12fb32c86677e /examples/nfc/annotatedurl/annotatedurl.h | |
parent | 3a4474295f7982021301d5c7c717d2ea7c0a2258 (diff) | |
download | qtconnectivity-ef9043ea139b2c383c00772a7140be5837e732a8.tar.gz |
Revamp annotatedurl example
The example was already updated not so long ago, so this patch mostly
introduces cosmetical changes:
* Fix CMakeLists.txt to use PRIVATE linking and also use
qt_standard_project_setup()
* Fix includes according to code guidelines
* Do not use 'Example' in the example name
* Add proper category
Fixes: QTBUG-111906
Change-Id: I09dc19699858f24d3d83ff9e71e8233a036f710c
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
(cherry picked from commit 7f1c6e44c8b18876ab978d2311866b3ddeed7267)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/nfc/annotatedurl/annotatedurl.h')
-rw-r--r-- | examples/nfc/annotatedurl/annotatedurl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/nfc/annotatedurl/annotatedurl.h b/examples/nfc/annotatedurl/annotatedurl.h index 866d5dba..887e82d5 100644 --- a/examples/nfc/annotatedurl/annotatedurl.h +++ b/examples/nfc/annotatedurl/annotatedurl.h @@ -4,15 +4,15 @@ #ifndef ANNOTATEDURL_H #define ANNOTATEDURL_H -#include <QtNfc/QNdefMessage> -#include <QtNfc/QNearFieldManager> -#include <QtNfc/QNdefFilter> +#include <QtNfc/qndeffilter.h> +#include <QtNfc/qndefmessage.h> +#include <QtNfc/qnearfieldmanager.h> -#include <QtCore/QObject> -#include <QtCore/QUrl> +#include <QtCore/qobject.h> -QT_FORWARD_DECLARE_CLASS(QPixmap) QT_FORWARD_DECLARE_CLASS(QNearFieldTarget) +QT_FORWARD_DECLARE_CLASS(QPixmap) +QT_FORWARD_DECLARE_CLASS(QUrl) //! [0] class AnnotatedUrl : public QObject |