Skip to content

Commit

Permalink
qpa: Add logging when registering and unregistering QInputDevice
Browse files Browse the repository at this point in the history
Change-Id: If2e7d106a449f3dc8ecb148540e21e1b70ec180e
Reviewed-by: Shawn Rutledge <[email protected]>
(cherry picked from commit ba4227e)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
torarnv authored and Qt Cherry-pick Bot committed Nov 12, 2024
1 parent b41bded commit 1e7a645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/kernel/qinputdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ void QInputDevicePrivate::registerDevice(const QInputDevice *dev)
{
QMutexLocker lock(&devicesMutex);
deviceList()->append(dev);
qCDebug(lcQpaInputDevices) << "Registered" << dev;
}

/*!
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/gui/kernel/qwindowsysteminterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ bool QWindowSystemInterface::handleWheelEvent(QWindow *window, ulong timestamp,
*/
void QWindowSystemInterface::registerInputDevice(const QInputDevice *device)
{
qCDebug(lcQpaInputDevices) << "register" << device;
QInputDevicePrivate::registerDevice(device);
}

Expand Down

0 comments on commit 1e7a645

Please sign in to comment.