diff options
-rw-r--r-- | src/imports/sensors/sensors.cpp | 3 | ||||
-rw-r--r-- | src/imports/sensors2/sensors2.cpp | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/imports/sensors/sensors.cpp b/src/imports/sensors/sensors.cpp index f65af6a2..b81bdd3d 100644 --- a/src/imports/sensors/sensors.cpp +++ b/src/imports/sensors/sensors.cpp @@ -106,9 +106,6 @@ public: int major; int minor; - // Force all of the sensors initialization to happen now, while we don't have a UI thread to interrupt - (void)QSensor::sensorTypes(); - // Register the 1.1 interfaces major = 1; minor = 1; diff --git a/src/imports/sensors2/sensors2.cpp b/src/imports/sensors2/sensors2.cpp index 190ecde0..d85f0c55 100644 --- a/src/imports/sensors2/sensors2.cpp +++ b/src/imports/sensors2/sensors2.cpp @@ -59,9 +59,6 @@ public: qDebug() << "QSensors2DeclarativeModule::registerTypes(const char *uri)"; Q_ASSERT(QLatin1String(uri) == QLatin1String("QtSensors")); - // Force all of the sensors initialization to happen now, while we don't have a UI thread to interrupt - (void)QSensor::sensorTypes(); - qmlRegisterUncreatableType<qsensor2common >(uri, 5, 0, "Sensor", QLatin1String("Cannot create Sensor")); qmlRegisterType <QSensor2Tilt >(uri, 5, 0, "TiltSensor"); qmlRegisterType <QSensor2AmbientLight>(uri, 5, 0, "AmbientLightSensor"); |