diff options
author | Juha Vuolle <juha.vuolle@qt.io> | 2023-02-17 12:59:11 +0200 |
---|---|---|
committer | Juha Vuolle <juha.vuolle@qt.io> | 2023-02-22 08:37:56 +0200 |
commit | 20373cfd4019c66884fb63a4316b1c60ede089ca (patch) | |
tree | e84f5e64d7a52d88672e97a9f854276366eadd87 /src | |
parent | 849519a842cf34527f4532837dcf84ec6bb28108 (diff) |
Remove sensors grue example
The primary purpose of the grue example is to demonstrate how to create
new sensors. However, while a nice implementation, it doesn't achieve
this purpose particularly well, and is all in all an overly complex
construct given the straightforward purpose (for instance causing build
and deployment challenges).
Instead it should be replaced with a tutorial-like step-by-step guide
on how to add new sensors. The item to track this: QTBUG-111251
Task-number: QTBUG-110939
Pick-to: 6.5
Change-Id: If353fd019483ad3d608f16d90820c09e676f1df1
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sensors/doc/src/qtsensors.qdoc | 1 | ||||
-rw-r--r-- | src/sensors/qsensor.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/sensors/doc/src/qtsensors.qdoc b/src/sensors/doc/src/qtsensors.qdoc index 8ff6c2e0..76235bb6 100644 --- a/src/sensors/doc/src/qtsensors.qdoc +++ b/src/sensors/doc/src/qtsensors.qdoc @@ -44,7 +44,6 @@ \list \li \l {Qt Sensors Examples} {Examples} - \li \l {Qt Sensors - Grue Sensor Example} \endlist \section1 API Reference diff --git a/src/sensors/qsensor.cpp b/src/sensors/qsensor.cpp index fbd94e76..d2f748a9 100644 --- a/src/sensors/qsensor.cpp +++ b/src/sensors/qsensor.cpp @@ -244,7 +244,7 @@ void QSensorPrivate::init(const QByteArray &sensorType) Only use this constructor if there is no derived sensor class available. Note that all built-in sensors have a derived class, so using this constructor should only be necessary - when implementing custom sensors, like in the \l {Qt Sensors - Grue Sensor Example}{Grue sensor example}. + when implementing custom sensors. */ QSensor::QSensor(const QByteArray &type, QObject *parent) : QObject(*new QSensorPrivate, parent) |