diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-09-20 10:19:35 +1000 |
---|---|---|
committer | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-10-10 09:21:15 +1000 |
commit | 3496318f01b63b4127c72999d634530313d60b57 (patch) | |
tree | 1eaac1fb88908c6397031e7cc67451aa7d5f5547 /doc/src | |
parent | e59f29fbcfe31beb7d68c06d597aa968a80a48cd (diff) | |
download | qtsensors-3496318f01b63b4127c72999d634530313d60b57.tar.gz |
Don't include QWidget.
Widgets aren't available anymore in certain builds.
Change-Id: Ic52df1557fd3d17cfbe800e8481b3b1b9a9c7dbb
Fixes: MTMW-330
Reviewed-on: http://codereview.qt-project.org/5170
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/sensors/creating.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/sensors/creating.cpp b/doc/src/snippets/sensors/creating.cpp index 98e7d5d..577253c 100644 --- a/doc/src/snippets/sensors/creating.cpp +++ b/doc/src/snippets/sensors/creating.cpp @@ -39,16 +39,16 @@ ** ****************************************************************************/ -#include <QWidget> +#include <QObject> #include <qaccelerometer.h> #include <qorientationsensor.h> -class MyWidget : public QWidget +class MyObject : public QObject { void create(); }; -void MyWidget::create() +void MyObject::create() { //! [Creating a sensor] // On the heap (deleted when this object is deleted) |