qtmobility/src/sensors/qambientlightsensor.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/src/sensors/qambientlightsensor.h	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/sensors/qambientlightsensor.h	Mon May 03 13:18:40 2010 +0300
@@ -68,8 +68,6 @@
     void setLightLevel(LightLevel lightLevel);
 };
 
-// begin generated code
-
 class Q_SENSORS_EXPORT QAmbientLightFilter : public QSensorFilter
 {
 public:
@@ -82,13 +80,11 @@
 {
     Q_OBJECT
 public:
-    explicit QAmbientLightSensor(QObject *parent = 0) : QSensor(parent)
-    { setType(QAmbientLightSensor::type); }
+    explicit QAmbientLightSensor(QObject *parent = 0) : QSensor(QAmbientLightSensor::type, parent) {}
     virtual ~QAmbientLightSensor() {}
     QAmbientLightReading *reading() const { return static_cast<QAmbientLightReading*>(QSensor::reading()); }
     static const char *type;
 };
-// end generated code
 
 QTM_END_NAMESPACE