qpa: Add logging when registering and unregistering QInputDevice

Change-Id: If2e7d106a449f3dc8ecb148540e21e1b70ec180e
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit ba4227ece04dd751e1a68f3bb5779d93ea830b73)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2024-10-29 12:19:25 +01:00 committed by Qt Cherry-pick Bot
parent b41bded9b8
commit 1e7a6451f8
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -576,7 +576,6 @@ bool QWindowSystemInterface::handleWheelEvent(QWindow *window, ulong timestamp,
*/
void QWindowSystemInterface::registerInputDevice(const QInputDevice *device)
{
qCDebug(lcQpaInputDevices) << "register" << device;
QInputDevicePrivate::registerDevice(device);
}