summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/sensors/creating.cpp
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2011-09-20 10:19:35 +1000
committerLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-10 09:21:15 +1000
commit3496318f01b63b4127c72999d634530313d60b57 (patch)
tree1eaac1fb88908c6397031e7cc67451aa7d5f5547 /doc/src/snippets/sensors/creating.cpp
parente59f29fbcfe31beb7d68c06d597aa968a80a48cd (diff)
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/snippets/sensors/creating.cpp')
-rw-r--r--doc/src/snippets/sensors/creating.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/sensors/creating.cpp b/doc/src/snippets/sensors/creating.cpp
index 98e7d5df..577253c3 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)