diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index fa28aff7dc..5f4daced73 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -4111,6 +4111,7 @@ QDebug operator<<(QDebug dbg, const QEvent *e) dbg << "QWheelEvent(" << we->phase(); if (!we->pixelDelta().isNull() || !we->angleDelta().isNull()) dbg << ", pixelDelta=" << we->pixelDelta() << ", angleDelta=" << we->angleDelta(); + dbg << " dev=" << we->device() << ')'; dbg << ')'; } break; diff --git a/src/gui/kernel/qinputdevice.cpp b/src/gui/kernel/qinputdevice.cpp index e515d5410b..3ef8ad10c7 100644 --- a/src/gui/kernel/qinputdevice.cpp +++ b/src/gui/kernel/qinputdevice.cpp @@ -348,7 +348,7 @@ void QInputDevicePrivate::registerDevice(const QInputDevice *dev) { QMutexLocker lock(&devicesMutex); deviceList()->append(dev); - qCDebug(lcQpaInputDevices) << "Registered" << dev; + qCInfo(lcQpaInputDevices) << "Registered" << dev; } /*! @@ -358,7 +358,7 @@ void QInputDevicePrivate::unregisterDevice(const QInputDevice *dev) { QMutexLocker lock(&devicesMutex); deviceList()->removeOne(dev); - qCDebug(lcQpaInputDevices) << "Unregistered" << dev; + qCInfo(lcQpaInputDevices) << "Unregistered" << dev; } bool QInputDevice::operator==(const QInputDevice &other) const diff --git a/src/gui/kernel/qpointingdevice.cpp b/src/gui/kernel/qpointingdevice.cpp index ef534b19cd..859d3e293e 100644 --- a/src/gui/kernel/qpointingdevice.cpp +++ b/src/gui/kernel/qpointingdevice.cpp @@ -719,6 +719,8 @@ QDebug operator<<(QDebug debug, const QPointingDevice *device) debug << " caps="; QtDebugUtils::formatQFlags(debug, device->capabilities()); } + if (device->buttonCount() > 0) + debug << " buttonCount=" << device->buttonCount(); if (device->maximumPoints() > 1) debug << " maxPts=" << device->maximumPoints(); if (device->uniqueId().isValid()) diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index 3e88380ae5..5f08bff1ad 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -24,7 +24,7 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; -Q_LOGGING_CATEGORY(lcQpaInputDevices, "qt.qpa.input.devices") +Q_LOGGING_CATEGORY(lcQpaInputDevices, "qt.qpa.input.devices", QtWarningMsg) Q_CONSTINIT QElapsedTimer QWindowSystemInterfacePrivate::eventTime; bool QWindowSystemInterfacePrivate::synchronousWindowSystemEvents = false;