summaryrefslogtreecommitdiffstats
path: root/examples/nfc/ndefeditor/mainwindow.h
diff options
context:
space:
mode:
authorAndrew O'Doherty <andrew.odoherty@qt.io>2017-12-21 13:48:28 +0100
committerAndrew O'Doherty <andrew.odoherty@qt.io>2018-02-01 11:55:44 +0000
commit1d6687a0c3f3ac8033eaec43c8b77eef8ee5c833 (patch)
tree3f92c3f69d44eb4e4c8a6810e3b1216e9113cd88 /examples/nfc/ndefeditor/mainwindow.h
parent0f1e8d9199eff71f84ed5bab10b60d9eaef1bf1b (diff)
Revamp Qt NFC examples: ndefeditor example
Align QtNfc Module examples to QML and c++ coding conventions. This commit is focused on the ndefeditor example. Task-number: QTBUG-60644 Change-Id: I6c14e1a7965bb335bfea87ed80c442926b6a36a4 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'examples/nfc/ndefeditor/mainwindow.h')
-rw-r--r--examples/nfc/ndefeditor/mainwindow.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/nfc/ndefeditor/mainwindow.h b/examples/nfc/ndefeditor/mainwindow.h
index ebdb24f0..9018cbfb 100644
--- a/examples/nfc/ndefeditor/mainwindow.h
+++ b/examples/nfc/ndefeditor/mainwindow.h
@@ -51,16 +51,12 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-#include <QMainWindow>
+#include <QtNfc/qnearfieldtarget.h>
-#include <qnearfieldtarget.h>
+#include <QtWidgets/QMainWindow>
-QT_BEGIN_NAMESPACE
-class QNearFieldManager;
-class QNdefMessage;
-QT_END_NAMESPACE
-
-QT_USE_NAMESPACE
+QT_FORWARD_DECLARE_CLASS(QNearFieldManager)
+QT_FORWARD_DECLARE_CLASS(QNdefMessage)
QT_BEGIN_NAMESPACE
namespace Ui {