diff options
Diffstat (limited to 'examples/nfc')
-rw-r--r-- | examples/nfc/nfc.pro | 5 | ||||
-rw-r--r-- | examples/nfc/poster/poster.pro | 2 | ||||
-rw-r--r-- | examples/nfc/poster/qmlposter.cpp | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/examples/nfc/nfc.pro b/examples/nfc/nfc.pro index e4f7e35b..0076a711 100644 --- a/examples/nfc/nfc.pro +++ b/examples/nfc/nfc.pro @@ -2,7 +2,10 @@ TEMPLATE = subdirs qtHaveModule(widgets) { SUBDIRS += \ annotatedurl \ - ndefeditor \ + ndefeditor +} +qtHaveModule(quick) { + SUBDIRS += \ poster } diff --git a/examples/nfc/poster/poster.pro b/examples/nfc/poster/poster.pro index 47de2986..b6e87ed6 100644 --- a/examples/nfc/poster/poster.pro +++ b/examples/nfc/poster/poster.pro @@ -1,4 +1,4 @@ -QT += qml quick network nfc widgets +QT += qml quick network nfc SOURCES += \ qmlposter.cpp diff --git a/examples/nfc/poster/qmlposter.cpp b/examples/nfc/poster/qmlposter.cpp index 89f36956..2fc943d4 100644 --- a/examples/nfc/poster/qmlposter.cpp +++ b/examples/nfc/poster/qmlposter.cpp @@ -38,13 +38,13 @@ ** ****************************************************************************/ -#include <QtWidgets/QApplication> +#include <QtGui/QGuiApplication> #include <QtQml/QQmlEngine> #include <QtQuick/QQuickView> int main(int argc, char *argv[]) { - QApplication application(argc, argv); + QGuiApplication application(argc, argv); const QString mainQmlApp = QLatin1String("qrc:/poster.qml"); QQuickView view; view.setSource(QUrl(mainQmlApp)); |