diff options
author | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-03-19 11:05:55 +0100 |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-03-19 11:06:33 +0100 |
commit | 50c16eab20a6d9884ab3149ef59137a10de63e6d (patch) | |
tree | 2684617d911514147283516ddd15803a4049da61 /src/sensors/doc/src/porting.qdoc | |
parent | d2cafb8506b798bad7fa56f19557dd6e1cb25cd7 (diff) | |
parent | 879e5536b033302b2ad976750cd2351674e161d6 (diff) | |
download | qtsensors-50c16eab20a6d9884ab3149ef59137a10de63e6d.tar.gz |
Merge branch 'dev' into stable
This starts Qt 5.1 release cycle
Change-Id: Idce0f9b94f9e585abfb6903f554500a06f4f8aaa
Diffstat (limited to 'src/sensors/doc/src/porting.qdoc')
-rw-r--r-- | src/sensors/doc/src/porting.qdoc | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/sensors/doc/src/porting.qdoc b/src/sensors/doc/src/porting.qdoc index fa2b3fb..0d5b572 100644 --- a/src/sensors/doc/src/porting.qdoc +++ b/src/sensors/doc/src/porting.qdoc @@ -39,21 +39,26 @@ \section1 QML - Compatibility for QML applications is provided by shipping the legacy \c QtMobility.sensors - QML import. QML applications should not require any changes to continue operating. + In QtMobility, the C++ classes like QAccelerometer were directly used as QML types. + In Qt Sensors, there are now separate classes for the QML types, which have no public + C++ API. - Applications using the legacy QML import may not be able to trivially port over - to the new QML import because the new QML import does not provide types for - every sensor like the legacy QML import does. + The new QML types in Qt Sensors fix some issues the former QtMobility QML types had, + for example: + \list + \li The reading types now have proper change notifications + \li \c availableDataRates and \c outputRanges of the \c Sensor type are now proper list types + \li The \c identifier and \c type properties of \c Sensor can now be used + \li The \c lux property of \c LightSensorReading has been renamed to \c illuminance + \li The \c QmlSensors singleton now allows to query for sensor types + \endlist - \table - \row - \li \l {Qt Sensors QML Types}{QML API} - \li Information about the Qt Sensors QML API - \endtable + For more information, see the \l {Qt Sensors QML Types}{QML API} documentation. \section1 C++ + The C++ API mainly remained the same as in QtMobility. + \section2 Includes QtMobility Sensors installed headers into a \c Qt Sensors directory. This is |