qtmobility/examples/sensors/grueplugin/gruesensor.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
--- a/qtmobility/examples/sensors/grueplugin/gruesensor.h	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/examples/sensors/grueplugin/gruesensor.h	Mon May 03 13:18:40 2010 +0300
@@ -72,8 +72,7 @@
 {
     Q_OBJECT
 public:
-    explicit GrueSensor(QObject *parent = 0) : QSensor(parent)
-    { setType(GrueSensor::type); }
+    explicit GrueSensor(QObject *parent = 0) : QSensor(GrueSensor::type, parent) {}
     virtual ~GrueSensor() {}
     GrueSensorReading *reading() const { return static_cast<GrueSensorReading*>(QSensor::reading()); }
     static const char *type;