diff options
author | Tor Arne Vestbø <[email protected]> | 2024-10-29 12:19:25 +0100 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2024-11-01 16:40:30 +0100 |
commit | ba4227ece04dd751e1a68f3bb5779d93ea830b73 (patch) | |
tree | 32bdaff3ab9332ff6bc31205ed08897c61ff17a2 | |
parent | 9d8744c77b03eb091061976dd084cb0ca3f6252b (diff) |
qpa: Add logging when registering and unregistering QInputDevice
Pick-to: 6.8
Change-Id: If2e7d106a449f3dc8ecb148540e21e1b70ec180e
Reviewed-by: Shawn Rutledge <[email protected]>
-rw-r--r-- | src/gui/kernel/qinputdevice.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qinputdevice.cpp b/src/gui/kernel/qinputdevice.cpp index f7b216dcf0a..e515d5410bb 100644 --- a/src/gui/kernel/qinputdevice.cpp +++ b/src/gui/kernel/qinputdevice.cpp @@ -348,6 +348,7 @@ void QInputDevicePrivate::registerDevice(const QInputDevice *dev) { QMutexLocker lock(&devicesMutex); deviceList()->append(dev); + qCDebug(lcQpaInputDevices) << "Registered" << dev; } /*! @@ -357,6 +358,7 @@ void QInputDevicePrivate::unregisterDevice(const QInputDevice *dev) { QMutexLocker lock(&devicesMutex); deviceList()->removeOne(dev); + qCDebug(lcQpaInputDevices) << "Unregistered" << dev; } bool QInputDevice::operator==(const QInputDevice &other) const diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 7154dac6884..3e88380ae56 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -576,7 +576,6 @@ bool QWindowSystemInterface::handleWheelEvent(QWindow *window, ulong timestamp, */ void QWindowSystemInterface::registerInputDevice(const QInputDevice *device) { - qCDebug(lcQpaInputDevices) << "register" << device; QInputDevicePrivate::registerDevice(device); } |