summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qactioninput.h
Commit message (Collapse)AuthorAgeFilesLines
* Switch export macros to standard formKai Koehne2019-04-021-1/+1
| | | | | | | | | | | | Qt expects the export macros to have Q_ prefixes, otherwise the symbol versioning script won't find them and mark them. Also remove non-exising QT3DLOGIC_PRIVATE_EXPORT macro from src/doc/qt3d.qdocconf Task-number: QTBUG-74752 Change-Id: I71b9e85ff09c002fb283824aa51a5a8f50e937f4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Replace Q_DECL_OVERRIDE with overrideKevin Funk2017-09-251-1/+1
| | | | | Change-Id: I92c955068e233c50043ad7d06a32300dd386c24d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Coding convention fix for Src/inputRobert Brock2017-03-161-1/+1
| | | | | | | | 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>
* De-inline dtors of public polymorphic classesMarc Mutz2016-05-191-0/+1
| | | | | | | | | | | | | | By making the destructor (usually the first non-inline, non-pure, virtual function, and therefore the trigger for most compilers to emit the vtable and type_info structures for the class in that TU) out-of-line, vtables and, more importantly, type_info structures for the class are pinned to a single TU. This prevents false negative dynamic_cast and catch evaluation. It also allows to add code to them later, if necessary. Change-Id: I0da301cd788162abba6cdbbb21910090a22adb9a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Change QList<int> properties to QVector<int>Kevin Ottens2016-05-041-4/+4
| | | | | | | | | Now that QVector<int> is supported by QML, let's switch to it and avoid the conversion cost altogether. Change-Id: I1f6bfb29cab38547d62fc7ec3ee6a322ca400f70 Task-number: QTBUG-51467 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Bring more type safety to the buttons propertiesKevin Ottens2016-05-021-4/+4
| | | | | | | | | | | | | | | | The API uses QList<int> now to benefit from the default support for this type in QML. We internally store it as a QVector<int> though so that the whole backend uses QVector<int> for them. It means we still have a conversion going on but it's not really on any hot patch and those lists will be small anyway. This conversion could be eliminated by hacking qv4sequenceobject.cpp in qtdeclarative but we're close enough to deadline that it's not worth the effort IMHO. Change-Id: I7ef16ec351cc54cc418a8f5c340397f58422add3 Task-number: QTBUG-51467 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Q_NULLPTR -> nullptrSean Harmer2016-05-011-1/+1
| | | | | | Task-number: QTBUG-52736 Change-Id: I58f9cbcdf018e7b672d33dd865067485412b79fe Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Strip out cloning subsystemSean Harmer2016-04-291-4/+0
| | | | | Change-Id: I4def54a11de0f9c676ef6b2d7bd8e723ded25ab9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QNode: make cleanup a private slotPaul Lemire2016-04-231-1/+0
| | | | | | | | | | QT3D_CLONEABLE now implements a default dtor that calls _q_ cleanup QT3D_CLONEABLE_CUSTOM_DTOR is used for classes that really need to implement their own dtor but they need to invoke _q_cleanup manually Change-Id: I2937a3b9edeb5a763749f0044360d78ab4461a5e Task-number: QTBUG-51464 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QActionInput creates creation changesSean Harmer2016-03-221-0/+1
| | | | | | | | | | Also add a helper function that given a QNode pointer, returns the node's Id if the pointer is non null, and a default constructed QNodeId otherwise. Task-number: QTBUG-51835 Change-Id: I5e227e4de6a2877ff97fc603c9d45ce8a11e6af0 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QActionInput and QAxisInput keys to buttonsRobert Brock2016-02-291-4/+4
| | | | | | | | As per API review renamed keys to buttons as it is more descriptive Change-Id: If0907b382a863d64bd8d86e2796613767a1fd12b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unify license header usageAntti Kokko2016-01-261-11/+14
| | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I8eac0cd6bbc276a56df487249cc459c0d4fab165 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Start at implementing QAbstractAction InputColin Ogilvie2016-01-121-2/+3
| | | | | Change-Id: I392dd326cb0bf1b8c12b72d8554a866156d43e76 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Added parameters to signals and made setters Q_SLOTSTomi Korpipää2015-12-091-4/+5
| | | | | | Change-Id: Icec2f9f207221e35ffdeeb594bb9b4dc6ef890f1 Task-number: QTBUG-49797 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QAxisInput/QActionInput: use list of int rather than int maskPaul Lemire2015-12-041-3/+3
| | | | | | | Needed to allow devices like keyboards which have more than 64 keys Change-Id: Ia837285ba9c5b7c26d3d89046d7d9f7a4cddb2ba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QActionInput: keys specified as a bit mask directlyPaul Lemire2015-11-281-3/+3
| | | | | Change-Id: Idbc36d2a391fa2dcf21735f85a5b2d3859c97450 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QActionInput/QAxisInput: add property for keysPaul Lemire2015-11-281-5/+5
| | | | | Change-Id: Ia8cb306dfc63027d66e4e0ad58ae453ddf1ed1f3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Start refactoring the input device pluginSean Harmer2015-11-281-4/+4
| | | | | | | | | | | | | The plugin will now create a QInputDeviceIntegration object which can act as a "mini input aspect" by setting things up and creating jobs each frame. This will also (soon) register the frontend QAbstractPhysicalDevice subclass with a factory on the QInputAspect to allow C++ users to create the frontend device type. Change-Id: I709febfe12b5fae7b6157d1192fb8720362c7622 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Reorganize Input aspect sources into backend/frontendPaul Lemire2015-11-281-0/+82
Change-Id: I7cb9137a6f108d557e3028dc0b72a0053d3f01d4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>