summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Blackberry: Add Q_DECL_OVERRIDE keywordsThomas McGuire2012-07-0213-25/+25
| | | | | | | | Change-Id: Iae2c29ac040d32623ec49976cf4df0a7a492d28b Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Add ambient light sensor supportThomas McGuire2012-07-024-0/+137
| | | | | | | Change-Id: I119c5864599e206795522be485c4c218f983cfb9 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove auto-generated commentThomas McGuire2012-07-021-7/+0
| | | | | | | This comment was only intended to be read after make_sensors.pl ran. Change-Id: If327aa583848172b267c541db861de2e1114c301 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update make_sensors.plThomas McGuire2012-07-021-1/+8
| | | | | | | | | | Add: - Q_DECL_OVERRIDE - QT_BEGIN/END_HEADER - QT_MODULE Change-Id: I89da05d84612aaa804298cbdd8575d2135a125fd Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Don't use hardcoded sensor IDsThomas McGuire2012-06-291-10/+10
| | | | | | | Change-Id: I8a5e6995e735cd7d80e24c9462f144b75a177d5a Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com> Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update the export macros in qtsensors.gitThiago Macieira2012-06-271-18/+2
| | | | | | | Use the new, simpler QT_STATIC macro. Change-Id: I20bad6db7a77227d7d4213e43b1350468f44b9a2 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-269-22/+9
| | | | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL - pointless include and depend paths Change-Id: I2c5062c238c6948f99d72f7c5544095cd30c988d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* auto-generate module prisOswald Buddenhagen2012-06-263-23/+1
| | | | | | Change-Id: I89ccb6cd05e58a1790480d5ea9c613ace4f42373 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Update .gitignoreThomas McGuire2012-06-261-0/+5
| | | | | Change-Id: I91d78c34784c1c2b71816a21c4782a074a2ae664 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix compilation.Friedemann Kleint2012-06-261-38/+0
| | | | | | | | qmlRegisterUncreatableType actually exists in declarative. Change-Id: Ia75855389fac95537eb6e3d8573db4ff55fad63c Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Cleanup last Symbian remnants in QtSensorsalex2012-06-227-69/+0
| | | | | Change-Id: I35eb858cad41167ac6bbbf17e48571965f34f8ca Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Hook doc generation into global QMAKE_DOCS contextalex2012-06-225-52/+2
| | | | | Change-Id: I3b654018a9d29719e56b928205f441e193fc01a3 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* enable the dtap sensor tests, as I cannot reproduce 25374 on mac.Lorn Potter2012-06-221-3/+2
| | | | | Change-Id: I75d0cbd1bd9ed5bfe7de3ef4aab09606a4f57869 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Get all the examples building and running on Desktop.Lincoln Ramsay2012-06-2035-73/+481
| | | | | | | | Build the required C++ stubs for each example and deploy all the files so that the examples are runnable. Change-Id: I03d23cb37e1c484110a58934a9b0aa550d6915a6 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove device-specific files.Lincoln Ramsay2012-06-2016-179/+0
| | | | | | | These aren't needed anymore. Change-Id: I723dfd8a85cd05c11135601908a90386cb840967 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove the 'special' naming of examples.Lincoln Ramsay2012-06-20143-75/+75
| | | | | | | Just go back to the naming convention we had before. Change-Id: Iefecb7a5e0ab3aa4d22267b4f475a8e9c1c96058 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove this because it confuses creator.Lincoln Ramsay2012-06-201-7/+0
| | | | | Change-Id: Id74ba22937204423285065df92ee1ce45d1786e7 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix the since tag usageLincoln Ramsay2012-06-201-1/+1
| | | | | Change-Id: Ie6124f99e1fbbbccda47ed144ddd565dd0cc4694 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* tweak to projects so that files show up in creatorLincoln Ramsay2012-06-202-10/+4
| | | | | Change-Id: Ice3f2df6b26995a21c0ec681245a7d54a0a01674 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix a broken snippetLincoln Ramsay2012-06-191-2/+2
| | | | | Change-Id: I9b3e402c07799b10b7480a891b576b2e9e56711c Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Missing minor numbers in versionsLincoln Ramsay2012-06-197-32/+30
| | | | | | Fixes: QTBUG-25926 Change-Id: I3a2942b13a9d335a9c564b23cb4a79241d6895af Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Remove duplicate (incorrect) \sa link.Lincoln Ramsay2012-06-191-1/+1
| | | | | | | | The correct link is already present so remove the broken one. Change-Id: Ieb41733f40ff9f79a6a14ad0820d9c8b026f967e Fixes: QTBUG-25927 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Docs: change QML elements to QML types in docs.Peter Yard2012-06-1921-143/+143
| | | | | Change-Id: I54a9a1972978f1d989d262f137b5890d1feb35e0 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* BlackBerry backend: Automatic Axis RemappingKevin Ottens2012-06-193-3/+78
| | | | | | | | | | | | | | | | Add a backend specific property named "automaticAxisRemapping" to force the sensor to modify its coordinate system based on the device native orientation. So usable from C++ using 'setProperty("automaticAxisRemapping", true)' or from QML using 'property var automaticAxisRemapping: true'. Note it requires QPlatformScreen::nativeOrientation() private API to find out the device native orientation. Change-Id: If4c5622fd42c74a55fe6d36966d7f589e612c117 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make twist work better when the phone is tilted.Lorn Potter2012-06-134-31/+400
| | | | | Change-Id: If4c04a6e3f9a936f55233c621d184bc0e4d99e1b Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix another bad use of static plugins.Lincoln Ramsay2012-06-133-16/+3
| | | | | Change-Id: I88bbe0ffe7768576df92a1d8e45097f7c35c5702 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Don't initialize sensors from registerTypes().Lincoln Ramsay2012-06-132-6/+0
| | | | | | | | This function gets called on a different thread... we don't really want that so just don't do that. Change-Id: I58dc0c0bc8d54221a0b6fd306552b67e2abf0235 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use static plugins properlyLars Knoll2012-06-127-27/+7
| | | | | | | | The test case was trying to use static plugins in a rather hacky way. Change it over to use the standard way. Change-Id: I828e64b841b58b763018e2688553c0453abd304b Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove qtbase pinLars Knoll2012-06-121-1/+1
| | | | | Change-Id: Ife9336fb1e7141737aea1cb76fe0e4bd99aa48cb Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Temporarily disable the test to get qt5.git through CILars Knoll2012-06-121-1/+1
| | | | | Change-Id: I98e74749fea8e7130dfd4df1213f435ebb0bbd31 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* pin qtbaseLincoln Ramsay2012-06-121-2/+1
| | | | | Change-Id: I5fea480598214664cea1c0d8755e3d2215ecd75e Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Qt.multimediakit 4.0 -> QtMultimedia 5.0Lincoln Ramsay2012-06-041-2/+1
| | | | | | | The Qt.multimediakit import is deprecated. Switch to QtMultimedia 5.0 Change-Id: I2fd86a52b4427636e49283704c044a7388825120 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* setDataRates clobbers user-set data rateLincoln Ramsay2012-06-043-14/+41
| | | | | | | | | | | | | | | | | | | | | | Under normal conditions, dataRate is set/checked like so. QSensor::setDataRate records the data rate. It can't be evaluated because we have no backend. Upon getting a backend, we are notified of the available data rates. Re-evaluate the previously-set dataRate after connecting to a backend. The problem is that connectToBackend did not save the dataRate value until after setDataRates was called and setDataRates was clobbering the dataRate property. Two fixes will be made. connectToBackend will save the dataRate before creating the backend and setDataRates will stop clobbering dataRate. Also, setDataRates is now banned from being called outside of the constructor because otherwise an available data rate may disappear during use. Add a test case to verify that a previously-set data rate is not clobbered. Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix display problems.Lincoln Ramsay2012-06-012-1/+3
| | | | | | | | The list needs to clip its contents. Give a bit of space at the top. Change-Id: I9eb7d9fe8c1ed01efa15f1805baeb54e725c1040 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Install all .qml files.Lincoln Ramsay2012-06-018-21/+9
| | | | | | | | | | | | | Instead of having a list of .qml files that needs to be kept in sync with the filesystem, pull in all .qml files. 2 examples (cube house, QML sensor gestures) were broken by having the .pro contents failing to match the filesystem. A similar change is made for the one project with .js files. Change-Id: I935a32b78138dfd2698d508a7524035eb5c0c2f9 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* updated tests to new format and minor correctionsDaron Andrew Edie2012-05-311-68/+86
| | | | | Change-Id: I3a93a5351f918b38bc56bf50596bfebdea3f1287 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* QtSensors/Examples: Fix compilation of examples with MinGW.Friedemann Kleint2012-05-302-2/+2
| | | | | | | -rdynamic is not supported on Windows. Change-Id: I1350ac28a538add3e501353c3c0eb215ef008592 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* smooth out AccelBubble's bubble movement, and fixup docs accordingly.Lorn Potter2012-05-302-53/+34
| | | | | Change-Id: I8b4988e9e3b4671ca8558364350c52d46aa7409c Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* there is no main.qml file here. Now it shows up in creator.Lorn Potter2012-05-301-1/+2
| | | | | Change-Id: I1c0dd3dea4a0b296388f66fc44fed560da85e028 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make mouse move better ine Maze example, add acceleration. Fix up docsLorn Potter2012-05-2911-111/+99
| | | | | | | | Use only one mouse gif and rotate it instead. also add screensaver inhibit. Change-Id: I4268bdec9346ee389e9b485e8c37d43a1e607128 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Do not run the bbsensor_header test on other platforms.Lincoln Ramsay2012-05-292-8/+4
| | | | | | | | | | | Make the Q_OS_BLACKBERRY define check explicit. Don't run the test unless CONFIG += blackberry has been used. This makes for a quicker "fail" path on other platforms and a slightly stricter "success" path. Change-Id: I00d8e66eb0abe765a2eeb70698bebfb38783ec9b Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update Examples using the same name conventionsWolfgang Beck2012-05-2872-67/+68
| | | | | | | | | e.g. Folder of example should start with QtSensorrs_ Example documentation title should start with QtSensors - images folder renamed to content Change-Id: I341fb8510ba3ad64068d786559e8d28af5d135c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (Sensor Gestures).Lincoln Ramsay2012-05-282-5/+19
| | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensor gestures will start returning 0. Check for this to avoid the chance of a crash. Change-Id: I4b538ac9b9535bd9439a897d4eab51211c523e33 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Report failure to connect and disconnect from the emulator.Lincoln Ramsay2012-05-282-1/+15
| | | | | | | This does not happen very often but it's good to report it when it does. Change-Id: Iaec494f3aa449dbfcda1522ecde4da9311fa27c9 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (simulator plugin).Lincoln Ramsay2012-05-289-66/+45
| | | | | | | | | | Consolidate all of the Q_GLOBAL_STATIC data into 1 class so we have one lifetime to manage. Provide a static instance() method for use outside of the .cpp file and check for this returning 0. Change-Id: I243e2c5497e1c018ab7713bd9ef43ac22a658ff7 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (QtSensors).Lincoln Ramsay2012-05-281-0/+11
| | | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensors will start returning 0. Check for this to avoid the chance of a crash. Change-Id: If2c235b158c36339e35e40074a5b33dbe21a7726 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* fix the QList logic - dont append and then removeLast.Lorn Potter2012-05-251-1/+1
| | | | | Change-Id: I4311cffddc1653ecf62129bb392350acc6e60276 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* fix crash when starting hover for the first time by itself.Lorn Potter2012-05-251-0/+4
| | | | | Change-Id: I4f15a1b959a35ec572d13c95430b0058b75b2061 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update info.json files to use the new standard.Wolfgang Beck2012-05-254-37/+39
| | | | | Change-Id: Ia32cbf8dbc2e1aaa80896568a346bef062715618 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix false positive sensor gesture recognition when slam is too close to headLorn Potter2012-05-244-3/+254
| | | | | Change-Id: Ic6aa24ca44b6cb61c1592bd8536a092d7ec0fc90 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>