summaryrefslogtreecommitdiffstats
path: root/examples/sensors/stub.h
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2023-02-17 12:34:02 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2023-02-22 08:37:54 +0200
commit849519a842cf34527f4532837dcf84ec6bb28108 (patch)
tree34973b19a083d0fb5cf0f74d6e6f6eeead97214b /examples/sensors/stub.h
parentc908718f86dd409f0f2d3757057d797b2f5ff83a (diff)
Remove sensors qmlqtsensors example
The example doesn't add much demonstration value in comparison to sensorsshowcase example. The one unique thing it does demonstrate is ambient light sensor. That sensor can be added to the sensorsshowcase too; but OTOH it is in some sense just 'a' sensor among the sensors, and there is probably no need to use all of them in the examples. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I5d0ba59d969b532689e23388cbdda42884838fca Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'examples/sensors/stub.h')
-rw-r--r--examples/sensors/stub.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/sensors/stub.h b/examples/sensors/stub.h
deleted file mode 100644
index 0bee2026..00000000
--- a/examples/sensors/stub.h
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (C) 2017 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QGuiApplication>
-#include <QQuickView>
-#include <QLoggingCategory>
-
-#define SENSORS_EXAMPLE_MAIN(NAME) int main(int argc, char **argv) \
-{\
- QGuiApplication app(argc,argv);\
- QQuickView view;\
- view.setSource(QUrl("qrc:///" #NAME ".qml"));\
- view.show();\
- return app.exec();\
-}