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:
parent
b41bded9b8
commit
1e7a6451f8
@ -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
|
||||
|
@ -576,7 +576,6 @@ bool QWindowSystemInterface::handleWheelEvent(QWindow *window, ulong timestamp,
|
||||
*/
|
||||
void QWindowSystemInterface::registerInputDevice(const QInputDevice *device)
|
||||
{
|
||||
qCDebug(lcQpaInputDevices) << "register" << device;
|
||||
QInputDevicePrivate::registerDevice(device);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user