summaryrefslogtreecommitdiffstats
path: root/src/sensors/gestures
Commit message (Collapse)AuthorAgeFilesLines
* Make overridden QObject functions public to enable Python bindingsJuha Vuolle2021-08-041-5/+3
| | | | | | | | | | | | | | | QSensorGesture implements a custom metaobject and does not use Q_OBJECT macro directly, but rather the key functions are overridden manually. These functions are now made public to allow Python bindings for the sensor gestures. Task-number: PYSIDE-487 Task-number: QTBUG-92505 Change-Id: I3682bfa1a39b2a6d85413eb1679492d9b5bd9513 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 5bcc6622c4283703c9f8cb5fcf9e983b6e91b377) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Replace Q_FOREACH with ranged for loopsJuha Vuolle2021-06-082-18/+12
| | | | | | Task-number: QTBUG-92505 Change-Id: I1e8334473c883f76285736f6a26138ea882f5351 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Replace Q_NULLPTR with nullptrKevin Funk2021-06-023-3/+3
| | | | | Change-Id: I9885deb29ebcd5db51a00cbcc2f063bfc418e23f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtSensors initial cmake supportLorn Potter2021-04-195-300/+3
| | | | | | | | | | | | | | | | | This commit introduces the bare minimum cmake support that should unblock the CI and allow further verification and development on most platforms: macOS, Linux, Win, iOS and Android. Some clarifications: * The support for sensorfw backend is very preliminary and can be enabled later if needed (no Qt6 version of the sensorfw). * The simulator backend is dropped as obsolete / unnecessary. * Three examples are currently commented out and shall be ported with a later commit. Task-number: QTBUG-92502 Change-Id: Id523d43ed3ef177010dc73afc5812ed374cff0dd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Use QList instead of QVectorJarek Kobus2020-06-251-1/+0
| | | | | | | Task-number: QTBUG-84469 Change-Id: I4ef3c22412f5978b3474c0ccd90bae08fd7f1297 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Doc: Remove non-existing arguments from docsLeena Miettinen2019-09-193-11/+11
| | | | | | | | | | ...for QSensorGesture::detected() and QSensorGestureRecognizer::detected() Also, the Q_QDOC defines are not needed any more. Change-Id: I3fe2fb779caceeb41187815d272aca053af695b3 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Fix qdoc errorsNico Vertriest2019-04-301-1/+1
| | | | | Change-Id: I989cc21bdbbd56c3b14b934b3256bda3a01a6764 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QSensorGesture: Add Qt 6 fixme comment asking to make QObject virtuals publicFriedemann Kleint2018-09-041-0/+1
| | | | | | | | | Qt for Python cannot currently be generated for the class since QObject::metaObject() is private. Task-number: PYSIDE-487 Change-Id: Ib368aa79bb3cd9b912d48455880d2f8ea9425f70 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add missing override and remove redundant virtualAlexander Volkov2017-11-141-2/+2
| | | | | Change-Id: I51c0fc424f44ae68c3c1c4cf6377e7701ee5a0dd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-03-073-3/+3
|\ | | | | | | | | | | | | Conflicts: src/sensors/doc/src/compatmap.qdoc Change-Id: I7bd464cbd506f630798091fef3896050ade7b3f8
| * Make more ctors explicitMarc Mutz2016-03-032-2/+2
| | | | | | | | | | | | | | | | | | Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: Iadcd2f1c751bb5a9cef96b2732bb3a7a8e34c6f8 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| * Make public headers compile with -Wzero-as-null-pointer-constantMarc Mutz2016-03-033-3/+3
| | | | | | | | | | | | | | | | | | | | | | ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Task-number: QTBUG-45291 Change-Id: Iaa6ea07220566adc323010c52233416e6ae2b726 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | Updated license headersAntti Kokko2016-01-2013-182/+260
|/ | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Id129b1497aa9d61fd16332e3b324f28dcf7bdd5b Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/devSergio Ahumada2015-02-224-12/+12
|\
| * Add the QtCore/ library prefix in public headersSergio Ahumada2015-02-124-12/+12
| | | | | | | | | | Change-Id: I294756d2d98972db24bd7d7e2979a92d78c5e060 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | Update copyright headersJani Heikkinen2015-02-1713-91/+91
|/ | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I141862df4ed2475c05ebbeb8fe447c4a6e736849 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Add \since tag to QtSensor classes.Alex Blasche2014-09-264-18/+20
| | | | | | | | | | QtSensors was released first by Qt 5.1. A few whitespace changes go along as well to unify the formatting. Change-Id: I6f6e15c95c1a5f33731782e429e87cef68e96e3b Task-number: QTBUG-36775 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4v5.4.0-alpha1Frederik Gladhorn2014-08-281-0/+11
|\ | | | | | | Change-Id: I7c2b192d4b3b4d745096058fd69921d855433f85
| * Add missing private headers warningv5.3.2Samuel Gaist2014-08-181-0/+11
| | | | | | | | | | | | Change-Id: I06883e0f2bb16999f13993b69b3701443912c5cc Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Update license headers and add new licensesJani Heikkinen2014-08-2413-247/+143
|/ | | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I99c601a398559886c2900f3e04833acfceba8263 Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-02-252-2/+2
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/sensors/generic/generictiltsensor.cpp src/sensors/qtapsensor.h sync.profile Change-Id: I017a5fa8dffb69b41727495175c0fca9b76962e1
| * Eliminate a warning for "make docs" due to the improper style usageLaszlo Papp2013-02-251-1/+1
| | | | | | | | | | Change-Id: I7901d1527ea02738f37de50ab2c0addcf6d5c927 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * Fix pedantic errors and warnings (found by headers clean test)Thiago Macieira2012-12-231-1/+1
| | | | | | | | | | | | | | | | | | qorientationsensor.h:68:17: error: comma at end of enumerator list [-pedantic] qsensorgestureplugininterface.h:68:99: error: extra ';' [-pedantic] qsensorbackend.h:73:5: error: declaration of 'reading' shadows a member of 'this' [-Werror=shadow] Change-Id: I50a9fc993a3a3c3391f6231ccd2c1976c636045b Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Remove the use of QT_MODULE()Sergio Ahumada2013-01-294-8/+0
| | | | | | | | | | | | | | | | | | | | The macro was made empty in qtbase/4ecf82795de54fba530ac9c386f3afff2174edbd and is no longer necessary or used. Also, don't generate this macro when using make_sensor.pl Change-Id: I19121c9f0a1775011f1dd08b9d7d5d85336b1122 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Remove QT_{BEGIN,END}_HEADER macro usageSergio Ahumada2013-01-286-12/+0
| | | | | | | | | | | | | | | | | | The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb and is no longer necessary or used. Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html Change-Id: If3f1040766e1c7de05bb8e90cd8a8a2a349bd096 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | \since QtSensors 5.0 -> \since 5.0Thomas McGuire2013-01-231-1/+1
|/ | | | | Change-Id: Ied2ceac07a5f9dd8a3331e1e2d407620450e138e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-292-2/+2
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-282-2/+2
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Fix includes in public headersThomas McGuire2012-11-033-5/+5
| | | | | Change-Id: I1401314208bb89ba46ed3f18393b1f446682cd93 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Modularized the Qt Sensor DocsGeir Vattekar2012-10-121-1/+1
| | | | | Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-111-1/+1
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-091-1/+1
| | | | | | | | | | | The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2413-312/+312
| | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I85014238e262cb59d8d92b0d708851e82e5633da Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix the since tag usageLincoln Ramsay2012-06-201-1/+1
| | | | | Change-Id: Ie6124f99e1fbbbccda47ed144ddd565dd0cc4694 Reviewed-by: Lorn Potter <lorn.potter@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>
* fix gestureSignals on simulator buildsLorn Potter2012-05-186-28/+26
| | | | | | | remove started and stopped signals and call the manager directly Change-Id: If2c05576e858c196ab3ba3d786574afbf894ca4b Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't use bare strings.Lincoln Ramsay2012-05-171-6/+6
| | | | | | | wrap with QLatin1Sring Change-Id: Ifc89212e95b990e45f4c38e8e23e292e5f8cc604 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* send only signals being started. Avoids developer confusion.Lorn Potter2012-05-176-5/+57
| | | | | Change-Id: I7f49f14d0546a2a59a26777c6f8fa083ec29e0ba Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fixing header problems identified by the CI gateWolfgang Beck2012-05-144-2/+11
| | | | | Change-Id: Ib1f65462a9203534538a18fdc6374fb125cd6f3d Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't crash when the emulator is missing.Lincoln Ramsay2012-04-302-1/+2
| | | | | | | | | | The emulator may be missing (eg. when running unit/system tests) so handle this case without crashing. Also fix a missing QLatin1String() around a bare string. Change-Id: Ibeeb0078c1ae12cec4bf8e3f4e81b3a4c72347da Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Using free instead of qFreeDebao Zhang2012-04-271-1/+1
| | | | | | | qFree has been deprecated. Change-Id: Ie64c791451cb3722183f2ea4d27b9b8e87a4f629 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make simulator work better with gestures.Lorn Potter2012-04-274-0/+257
| | | | | | | | code from the plugin has been moved into the manager so that every other plugin can be triggered by the emluator. Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* QtSensors: Fix compilation after merging of the api_changes branch.Friedemann Kleint2012-04-181-4/+4
| | | | | Change-Id: I6d9f674eac15ad5f22de0e5631396c2c9eb1f19f Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* fix documentsLorn Potter2012-03-201-2/+2
| | | | | Change-Id: If07ca2c2c60178fa769cbaf9ac31079d7a9414bd Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Use the new plugin mechanism for Sensors and SensorGesturesLincoln Ramsay2012-03-163-27/+11
| | | | | | | | | | | | | | Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead, Q_PLUGIN_METADATA is used. Meta-data is provided through a .json file that is embedded into the plugin by moc. For now, this meta-data is not actually used because both sensors and gestures use a dynamic registration mechanism. Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove REGISTER_STATIC_PLUGIN_V2Lincoln Ramsay2012-03-161-1/+0
| | | | | | | | | | | | | | | This was never officially part of the public API. Remove it from public headers so that it is not accidentally used. This macro cannot be used with the new Qt plugins. There are 2 unit tests that use this mechanism and for this reason, loading of static, legacy plugins will continue but they will use internal logic to achieve this rather than a macro defined in a public header. Change-Id: I3fadcc1ca5c22ea0fc3660584ddba28271d18a89 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add some testing for sensorgestureplugins, however feeble.Lorn Potter2012-03-141-1/+16
| | | | | Change-Id: I4758f401cbf577b2ac7ba772f4897e6334f22900 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-011-1/+1
| | | | | | | | | | QDoc now has support for Doxygen style commands for italics, bold and list items. This change applies that change in QDoc to the actual documentation. Task-number: QTBUG-24578 Change-Id: I9e809abef666b8498bc481aae9f324b954eff387 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update REGISTER_STATIC_PLUGIN_V2 (compile)Lincoln Ramsay2012-02-171-4/+1
| | | | | | | | | | | | | | | | | | Ideally, this macro would only consist of a Q_EXPORT_PLUGIN / Q_IMPORT_PLUGIN combination but there is no 'static' version of Q_EXPORT_PLUGIN available unless we're a static build of Qt. Thus, this macro duplicates the logic from the correct Q_EXPORT_PLUGIN macro here. Use the new code so that we can compile apps that use REGISTER_STATIC_PLUGIN_V2 (like the unit test). Using an ifdef so we don't break people who haven't updated qtbase yet. Refactor the headers so we only have 1 copy of this macro. Change-Id: Id8c69833029bdd54b66d24dea878b0603b0cb6e9 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* fix hover and cover since prox driver output changed.Lorn Potter2012-02-081-2/+2
| | | | | Change-Id: Ic620a9012472c81f7f1bb15e450638745809effa Reviewed-by: Lorn Potter <lorn.potter@nokia.com>