summaryrefslogtreecommitdiffstats
path: root/src/input/backend/qabstractphysicaldevicebackendnode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-201-2/+2
| | | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I1b3c7c4058726c55199fd8ba74b6d6890ad8dd93 Reviewed-by: Mike Krus <mike.krus@kdab.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-06-221-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I8105424281eed871037fa6c463871ca8829876b5 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Replace old Q_DECL statements with modern C++Allan Sandfeld Jensen2020-11-021-1/+1
| | | | | | | | Since we have long depended on C++11 now, all of these can go. Change-Id: I8808af2cd5ce192864c636b521dadd7de189563b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Use QList instead of QVector in implementation and docsJarek Kobus2020-07-091-18/+11
| | | | | | | | | Fix some const correctness. Use list-initialization. Task-number: QTBUG-84469 Change-Id: I9c56742581f48f89a3b02e4121fae414117c7a25 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove deprecated classes and functionsPaul Lemire2020-02-111-1/+0
| | | | | | | Mostly old messaging API Change-Id: I17eb2206b2ede56d2f7d36375d5e711d6149019f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Clean up includesMike Krus2019-10-011-3/+0
| | | | | | | | | Remove include statements for classes that are no longer used. Makes it easier to find remaining use cases that need addressed before complete removal in Qt 6. Change-Id: I60529ba1929ad64b162d3847d5df47cde2a60dad Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update device nodes to use direct syncMike Krus2019-10-011-63/+27
| | | | | Change-Id: Ic93968816b719ff407db1d1f2f67d906fab3ca0a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Coding convention fix for Src/inputRobert Brock2017-03-161-8/+8
| | | | | | | | 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>
* QAbstractPhysicalDeviceBackendNode: remove assert that conflicts with testsPaul Lemire2016-10-101-1/+0
| | | | | Change-Id: Ib69bbf9967da831b9a069ddce1424b7946c7f369 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractPhysicalDeviceBackendNode: fix bad erasePaul Lemire2016-10-101-1/+3
| | | | | | Change-Id: Ie222eb59a9bcf53cfaf1b417241933961034d010 Task-number: QTBUG-53639 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Repair AxisSetting handling in physical devicesKevin Ottens2016-05-231-19/+33
| | | | | | Change-Id: I9989f5ccf7871eb60083c4fcb40d4eb9158b1b19 Task-number: QTBUG-53358 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Rename QNodeRemovedPropertyChange -> QPropertyNodeRemovedChangeSean Harmer2016-05-101-2/+2
| | | | | | Task-number: QTBUG-51494 Change-Id: I1c7f1c680bc18c6201b790e96dc4023564837122 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Rename QNodeAddedPropertyChange -> QPropertyNodeAddedChangeSean Harmer2016-05-101-2/+2
| | | | | | Task-number: QTBUG-51494 Change-Id: I7f59bad66eb086e2249c580be2fd9f4bad159eb3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QNodePropertyChange -> QPropertyUpdatedChangeSean Harmer2016-05-101-1/+1
| | | | | | Task-number: QTBUG-51494 Change-Id: Ic326499f80b5a91b2d19c09770de926f220cc805 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Rename NodeAdded/NodeRemoved ChangeFlagsSean Harmer2016-05-101-2/+2
| | | | | | | | | | | | | | | | These are not just for adding/removing QNodes. They are more general in purpose and are used for adding/removing values to/from collection based properties e.g. QVector<MyValue>. The addition/removal of QNode pointers (which we translate to QNodeIds) is just the most common case. If Q_PROPERTY/QObject gains support for properties of collections and the typical operations on them, then we will be able to catch and handle most uses of these change types in QNodePrivate just like we do for setting a Q_PROPERTY. Task-number: QTBUG-51494 Change-Id: I707de1647554a61accf81dc79bfe58b289dbff7b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QAbstractPhysicalDeviceBackendNode: remove unused functionMarc Mutz2016-05-051-10/+0
| | | | | Change-Id: If6ce5d7c10654350abf669f782845b96e049cdc2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove QBackendNode::updateFromPeer()Sean Harmer2016-05-031-13/+14
| | | | | | | | | | Implemented a few missing initializeFromPeer() implementations along with the corresponding frontend node creation change creation functions. Adapted unit tests. Change-Id: I571e53a7b68a5544bd0e308df0baf7e52533306e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Make QInputDevicePlugin and friends privateKevin Ottens2016-05-021-1/+1
| | | | | | | | | Now QInputDevicePlugin, QInputDeviceIntegration and QAbstractPhysicalDeviceBackendNode are private. Change-Id: I8fad31770c6ef7d01781a98654859124a1323406 Task-number: QTBUG-51453 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Q_NULLPTR -> nullptrSean Harmer2016-05-011-2/+2
| | | | | | Task-number: QTBUG-52736 Change-Id: I58f9cbcdf018e7b672d33dd865067485412b79fe Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* input/backend: eradicate Q_FOREACH loops [low-risk]Marc Mutz2016-04-301-4/+7
| | | | | | | | | | | | | | | | ... by replacing them with C++11 range-for loops. To avoid detaches of these mutable Qt containers, wrap the container in qAsConst(), where needed. This is the batch with low-risk changes. They operate on local containers or the loop body clearly does not cause the container to change. Saves ~5.4KiB (1.08%) in text size on optimized GCC 6.0 Linux AMD64 builds. Change-Id: I8be9ac2e0d7a200d9a4a286f06f1da26377e366d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* AbstractPhysicalDevice use new added/removed change typesSean Harmer2016-04-271-7/+19
| | | | | | | Also implement missing notification sending from the frontend. Change-Id: Iab9ff424496ee1db91101dc70f9b074ca093d2a6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Rename QScenePropertyChange -> QNodePropertyChangeSean Harmer2016-04-211-2/+2
| | | | | | | Trying to unify naming of change types. Change-Id: I0bfca0b7ba5adeaaa6145f75ddb41731f76adc09 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QAbstractPhysicalDeviceBackendNode: use m_enabled member from QBackendNodePaul Lemire2016-04-151-9/+3
| | | | | Change-Id: I51a22b7c8f911b160c0c9892ab91c7863bd4b62c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add protected overload of initializeFromPeer() for backend devicesSean Harmer2016-03-311-0/+12
| | | | | | | | | | | | | Subclasses should call this from their overloads to set up the base device properties. Since we do not yet know if all AxisSettings objects will exist by this time, just store the id's of them and we will add a job to extract the settings in the next frame once we know they will all have backend objects. Change-Id: I207db9d2be165f8fb64668c4a890ad931eb0081e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QAxisSetting renamed filter to smoothRobert Brock2016-02-281-2/+2
| | | | | | | As per API review Change-Id: I3d539c6ab5fc80dc67f2d1058386f793196a8231 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAxisSetting renamed deadZone to deadZoneRadiusRobert Brock2016-02-281-1/+1
| | | | | | | As per API review Change-Id: Id80cd4cb7ace9f99ee6fe9ac55662a7eb55f5f31 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>
* Smoothly transition from deadzone by adjusting gradient of responseSean Harmer2015-12-161-2/+25
| | | | | Change-Id: Ibb76111afb7d7ae6fb14aadf2e7225895e45152e Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Implement low pass filtering of axis valuesSean Harmer2015-12-161-5/+26
| | | | | Change-Id: Ie9a7677db6c86cfd51732d0e009e5de6442ee931 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Implement dead zone supportSean Harmer2015-12-161-7/+130
| | | | | Change-Id: Icd5d31ba690484dc310de872be9df3ec9a520c63 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* QAbstractPhysicalDeviceBackendNode: exported and added protected ctorPaul Lemire2015-11-301-5/+9
| | | | | Change-Id: I90b58411bbb290a2c615c942a0388421b398f499 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add some implementation for QAbstractPhysicalDeviceBackendNodeSean Harmer2015-11-291-1/+47
| | | | | Change-Id: Ic91c8d42847360eb8e1b64880c87dca837847a15 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractPhysicalDeviceBackendNode addedPaul Lemire2015-11-281-0/+50
Change-Id: Ide3971136ada63afec2267e120b15e28c5d53365 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>