summaryrefslogtreecommitdiffstats
path: root/src/input
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of the AllocationPolicy template argument in the ResourceManagerLars Knoll2017-09-111-32/+16
| | | | | | | We always use the same policy anyway. Change-Id: I3349b8c19ce0e6239b140dfac7ba66f8dda1b9be Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Doc: add doc to undocumented methods/propertiesNico Vertriest2017-08-283-0/+9
| | | | | | Change-Id: I8967110b0237421299c2103f847a38e0526f9a6b Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* QMouseHandler: Add a parent to the internal timerGuilhem Vallat2017-08-252-0/+9
| | | | | | | | | Without it the timer is leaked and doesn't follow the mouse handler when move from a thread to another. Task-number: QTBUG-62779 Change-Id: I34afc36165d2bbbce626d6c2c74f9408a319a7cb Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Complete QML documentation for QAxisAccumulatorPaul Lemire2017-08-181-0/+18
| | | | | | Change-Id: I839196116a5b4d70fa0545c0c6fd28079efeebca Task-number: QTBUG-61993 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix qml signal documentation for QMouseHandlerPaul Lemire2017-08-181-25/+49
| | | | | | | | Also align everything properly Change-Id: I65d4ed2646ed69a5037f9e8bca3c6ade6f7199b8 Task-number: QTBUG-61997 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Doc: add doc to undocumented methodsNico Vertriest2017-08-111-0/+3
| | | | | | | | - qtext2dentity.cpp - qabstractphysicaldevice.cpp Change-Id: I026ac031c366c979e17667c3635c1a391a5bba8a Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Use QSharedPointer::create() moreMarc Mutz2017-07-222-3/+3
| | | | | | | | | | This is the result of running the (experimental) clang-tidy check qt-modernize-qsharedpointer-create Discarded changes: none. Change-Id: Ic6368521ebf5841267ffe7917cc652627f7b26a7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Doc: add basic doc to undocumented classesNico Vertriest2017-06-091-0/+5
| | | | | Change-Id: Ib67712bd961a3e0b113ddd25feaa819695e792b9 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Normalize Q_ARG to avoid temporary memory allocationsSergio Martins2017-06-032-2/+2
| | | | | | | Found by -Wclazy-connect-not-normalized Change-Id: I774424bb53c0d24bd49d5fafdfb8f02e9f05ee16 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix container detachments detected by clazySergio Martins2017-05-261-1/+2
| | | | | Change-Id: I551073c386247215f1c51dce92e5f05b5d335cc0 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix build for -no-feature-wheeleventStephan Binner2017-04-2713-8/+57
| | | | | | | Change-Id: I72591f43c0e2c4cc6e3e589f8d8e52fbb1041666 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com> Reviewed-by: Tasuku Suzuki <tasuku.suzuki@qt.io> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix build for -no-feature-gesturesStephan Binner2017-04-272-1/+9
| | | | | | | Change-Id: Ib0f0d7f21bf32b09f8dc6d3a4859d037b4e39af7 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com> Reviewed-by: Tasuku Suzuki <tasuku.suzuki@qt.io> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix build for -no-feature-shortcutStephan Binner2017-04-271-0/+2
| | | | | | Change-Id: I1ddd01924fc1d5667be7e0bba2540e24c2272bc3 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix warnings for -no-feature-libraryStephan Binner2017-04-271-0/+5
| | | | | | Change-Id: I5a6713fe6081c36fdae9dcb7b7671403f737e4c0 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix spelling in comments and docsAndy Maloney2017-04-061-1/+1
| | | | | Change-Id: Ib93da3bc94ee43980d1190955c8c37e886c4b0fa Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Merge branch '5.8' into 5.9Sean Harmer2017-04-02105-210/+310
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/core/jobs/qthreadpooler.cpp src/core/nodes/qcomponent.cpp src/core/qpostman.cpp src/core/qscene_p.h src/core/services/qservicelocator_p.h src/input/frontend/qinputaspect.cpp src/plugins/sceneparsers/assimp/assimpimporter.cpp src/plugins/sceneparsers/assimp/assimpimporter.h src/plugins/sceneparsers/gltf/gltfimporter.h src/plugins/sceneparsers/gltf/gltfio.cpp src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp src/quick3d/imports/render/qt3dquick3drenderplugin.cpp src/quick3d/quick3dextras/qt3dquickwindow.cpp Change-Id: I3566708c6f74a34959e7bb64b64e93647ca3f699
| * Coding convention fix for Src/inputRobert Brock2017-03-16105-208/+307
| | | | | | | | | | | | | | | | Reordering the header includes to comply with Qt coding conventions Task-number: QTBUG-56185 Change-Id: I1d1b61c2fac42505f85a1c4421e1292259270568 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Wrap QLibrary header inclusion inside QT_CONFIG(library)Kimmo Ollila2017-03-211-0/+2
| | | | | | | | | | Change-Id: I9f5f5e467bf271ded01d2f59354e19a567ea456e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | Doc: added parameter specificationsNico Vertriest2017-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | qpaintedtextureimage.cpp: - undocumented parameter 'h' in Qt3DRender::QPaintedTextureImage::setHeight() - undocumented parameter 'size' in Qt3DRender::QPaintedTextureImage::setSize() - undocumented parameter 'w' in Qt3DRender::QPaintedTextureImage::setWidth() qskyboxentity.cpp:298: warning: Undocumented return value qaxisaccumulator.cpp:250: warning: Undocumented parameter 'sourceAxisType' in Qt3DInput::QAxisAccumulator::setSourceAxisType() Change-Id: I609ce4472c2468557bb2cb0042e9fc4923514b92 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* | Deliver all events by default unless marked as intermediateSean Harmer2017-02-096-15/+0
| | | | | | | | | | | | | | | | | | | | This change inverts m_final flag on property change events so that now, all events are delivered by default. The animation aspect now marks intermediate calculated changes and these are not delivered unless the user subscribes to them. Change-Id: Ide6c30b29a91ed874d47c52d0ee1352f6680c3d8 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2017-01-301-11/+5
|\| | | | | | | Change-Id: I0bc5a9f5a6971cd6bb6ad531515928adefc5b0cb
| * Doc: corrected several qdoc errors qt3dNico Vertriest2017-01-251-10/+4
| | | | | | | | | | | | | | | | qaxisaccumulator.cpp:182: warning: QML property documented multiple times: 'real Qt3D.Input::AxisAccumulator::value' Errors on \return Change-Id: Ibff02113e1a4ac3cfc79d23960812345cba513cb Reviewed-by: Martin Smith <martin.smith@qt.io>
| * Doc: minor spelling mistakeNico Vertriest2017-01-251-1/+1
| | | | | | | | | | Change-Id: I7b2675400a7111bdb1f9817d52a96706942c2f1d Reviewed-by: Martin Smith <martin.smith@qt.io>
* | Set the final flag on scene changes coming from the backendPaul Lemire2017-01-266-0/+15
| | | | | | | | | | | | | | This fixes a regression introduced by the patch introducing property tracking. Change-Id: Ib2e41183ea1ff389e6bad97cfa308311ee024541 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Merge branch '5.8' into devSean Harmer2016-12-2115-11/+512
|\| | | | | | | | | | | | | Conflicts: src/input/frontend/qaxisaccumulator.cpp Change-Id: I7d213339241743e60f11cf0f3ae68076cb762c62
| * Merge branch '5.8.0' into 5.8Sean Harmer2016-12-1615-11/+512
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/render/backend/render-backend.pri src/render/backend/renderer_p.h src/render/frontend/qrenderaspect.cpp Change-Id: If0481f031a6caf7995fefa93b96f1fdeb96cbd26
| | * Fix warnings about unregistered metatypesSean Harmer2016-12-081-0/+3
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-57495 Change-Id: Ia1dc858d3c6c223498cec3644dcd8d35b7181630 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
| | * Add plumbing and process AxisAccumulators each frameSean Harmer2016-12-0715-4/+294
| | | | | | | | | | | | | | | Change-Id: I91a0f9384c7ef2ba642db1a2becdba1d2e374d87 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
| | * QAxisAccumulaor should be a componentSean Harmer2016-12-073-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | So that it can be aggregated by entities to accumlate axis values which is behavior implemented on the backend. Change-Id: Idd7a1a2c1e3f7e73c3c83023ebad9b3e85f31a5d Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
| | * Add backend class for AxisAccumulator and testsSean Harmer2016-12-073-2/+210
| | | | | | | | | | | | | | | Change-Id: I2d6071c11054eff7d5a574ce3a3dba54dd9bad12 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* | | Add missing emit keyword when calling signalsSergio Martins2016-12-183-3/+3
|/ / | | | | | | | | | | | | It's improves readability and fixes clazy-incorrect-emit warnings. Change-Id: I1cfda5534e08f6f3ce0809716e0adbe182c50c0d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Doc: removed superfluous (double) documentation + link errorNico Vertriest2016-12-071-8/+3
| | | | | | | | | | | | | | | | | | - removed link to Tessellation Modes QML Example - QMouseDevice::sensitivity documented twice - QTextureImage::source documented twice Change-Id: I7d1a37a158bf2861103b20a5d387a005e7c759c6 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* | Doc: Specify #include path for each \classTopi Reinio2016-12-075-0/+6
|/ | | | | | | | | | | | QDoc tries to guess the correct #include statement, displayed in the requisites table in the class reference. However, this often produces incorrect information for a module as complex as Qt3D. To fix this, manually specify the include path with the \inheaderfile command. Change-Id: I42929b92600d07d759f4f76e9051ff656785c652 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* LCOV exclusion comments squashedPaul Lemire2016-11-234-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 60 commits. qlockableobserverinterface_p.h: add LCOV exclusion comments qobserverinterface_p.h: add LCOV exclusion comments qpostman_p.h: add LCOV exclusion comments qsceneobserverinterface_p.h: add LCOV exclusion comments qscene_p.h: add LCOV exclusion comments qnodeid.h: add LCOV exclusion comments quick3dshaderdataarray_p.h: add LCOV exclusion comments quick3dshaderdata_p.h: add LCOV exclusion comments qquaternionanimation_p.h: add LCOV exclusion comments qabstractphysicaldeviceproxy_p.h: add LCOV exclusion comments qmouseevent.h: add LCOV exclusion comments qmousedevice.h: add LCOV exclusion comments qaxisaccumulator.h: add LCOV exclusion comments qtextureimagedatagenerator.h: add LCOV exclusion comments qtexturewrapmode.h: add LCOV exclusion comments qabstracttexture.h: add LCOV exclusion comments qtextureimage.h: add LCOV exclusion comments texture_p.h: add LCOV exclusion comments qtexturegenerator.h: add LCOV exclusion comments qsortpolicy.h: add LCOV exclusion comments qrendertargetselector.h: add LCOV exclusion comments qsortcriterion.h: add LCOV exclusion comments qclearbuffers.h: add LCOV exclusion comments qrendercapture_p.h: add LCOV exclusion comments uniform_p.h: add LCOV exclusion comments triangleboundingvolume_p.h: add LCOV exclusion comments qgeometryfactory.h: add LCOV exclusion comments qbuffer_p.h: add LCOV exclusion comments qbuffer.h: add LCOV exclusion comments qgeometryrenderer.h: add LCOV exclusion comments qbufferdatagenerator.h: add LCOV exclusion comments qattribute.h: add LCOV exclusion comments qsceneiohandler_p.h: add LCOV exclusion comments qsceneloader.h: add LCOV exclusion comments qrendersettings.h: add LCOV exclusion comments qcamera.h: add LCOV exclusion comments qcameralens.h: add LCOV exclusion comments sphere_p.h: add LCOV exclusion comments shaderdata_p.h: add LCOV exclusion comments qshaderdata.h: add LCOV exclusion comments qgraphicsapifilter.h: add LCOV exclusion comments qshaderprogram.h: add LCOV exclusion comments qpointsize.h: add LCOV exclusion comments qblendequation.h: add LCOV exclusion comments qstenciltestarguments.h: add LCOV exclusion comments qalphatest.h: add LCOV exclusion comments qstenciloperationarguments.h: add LCOV exclusion comments qdepthtest.h: add LCOV exclusion comments qblendequationarguments.h: add LCOV exclusion comments qfrontface.h: add LCOV exclusion comments qcullface.h: add LCOV exclusion comments qray3d_p.h: add LCOV exclusion comments qboundingvolume_p.h: add LCOV exclusion comments qabstractcollisionqueryservice_p.h: add LCOV exclusion comments qpickevent.h: add LCOV exclusion comments qabstractlight.h: add LCOV exclusion comments light_p.h: add LCOV exclusion comments qt3dquickwindow.h: add LCOV exclusion comments scene3ditem_p.h: add LCOV exclusion comments qgraphicsapifilter_p.h: add LCOV exclusion comments Change-Id: I3af0e2a4d85685c919dbfaa8b3f384777f026542 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* QInputAspect: register functor to create PhysicalDeviceProxyPaul Lemire2016-11-191-0/+2
| | | | | Change-Id: I61843b640e63c6d88727eda1587cd0b24d3ea56b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* ActionInput: remove {} for single line ifPaul Lemire2016-11-191-3/+2
| | | | | Change-Id: I9be8217e99664b1ce5bf28d313d10dd7332d7cbe Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* UpdateAxisActionJob: handle proxy physical devicesPaul Lemire2016-11-195-27/+6
| | | | | Change-Id: I2283bd222480d9af4d4b943feee88898eda8147b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: add utils header with helpersPaul Lemire2016-11-192-1/+105
| | | | | | | | | Provides a getter to retrieve a backend physical device from an input class. The getter handles the case where the physical device is just a wrapper proxy around a real physical device. Change-Id: I83814a1c456b62b590697ebd4ec81751b2bfd8ba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* PhysicalDeviceProxy: store id of loaded devicePaul Lemire2016-11-192-1/+12
| | | | | Change-Id: I467129355475cdf114ff7003708023c029eb73bc Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* MouseDevice: make testablePaul Lemire2016-11-192-20/+50
| | | | | | | By exporting and adding getters Change-Id: Ia488cdc75ae7805e29525845b6aa6ab3f1f86756 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QMouseDevice: add buttonIdentifier method which was missingPaul Lemire2016-11-192-0/+18
| | | | | Change-Id: I536a0736d62d71b7cb579dde96a9f70667d35278 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* UpdateAxisAxtionJob: typedef should be using a QSharedPointerPaul Lemire2016-11-181-1/+1
| | | | | Change-Id: I75c242336db21f3610c42ccfec15a65ee1571bc1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputAspect: use the load device wrapper jobPaul Lemire2016-11-181-0/+11
| | | | | Change-Id: Ieb108830fb4635cf155bbf0c5c9ddba167b7fba7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: add LoadProxyDeviceJobPaul Lemire2016-11-183-2/+190
| | | | | Change-Id: I0a6880930ca20c73d7cd9d93688b33d1a28b17db Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: move createPhysicalDevice into input handlerPaul Lemire2016-11-183-7/+15
| | | | | | | This will avoid code duplication when the device wrapper loader job is introduced Change-Id: Ia970b88f8c6aa484b30b5154d107fa7a1f155612 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input JobCommons: add entry for device proxy jobPaul Lemire2016-11-181-1/+2
| | | | | Change-Id: I6043537ed01fd9a96a5be9186d5a83e1449f0244 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add PhysicalDeviceProxy: backend for QAbstractPhysicalDeviceProxyPaul Lemire2016-11-187-2/+267
| | | | | Change-Id: I536df06d6013fd85e4c7a15364ae6926d472943d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add QAbstractPhysicalDeviceProxyPaul Lemire2016-11-184-2/+432
| | | | | | | | | | Will allow to create device wrappers/proxies to avoid having to perform introspection of the available devices. Will also allow to have similar APIs in C++ and QML. Change-Id: I1a0787d3696c75848ceb4ffbcde0b1511120c3d0 Task-number: QTBUG-55498 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputSettings: store connection in dptrPaul Lemire2016-11-143-6/+5
| | | | | | | To avoid breaking binary compatibility Change-Id: I4216830c70aa537fc225cdf92f31c06e64915ac1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* ButtonAxisInput shouldn't process when disabledKevin Ottens2016-10-291-0/+3
| | | | | Change-Id: Ied847a448993507d2ad7c08c1ddf6ab85459b8d3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>