From 45c623c42ac26eafff8e401709fa4c97ed9cd585 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 24 Nov 2020 10:59:14 +0100 Subject: [PATCH] Output source in debug operator of QMouseEvent Task-number: QTBUG-88678 Task-number: QTBUG-46412 Pick-to: 6.0 Change-Id: If9282f5b845ef16ff7e7ce523f78e3b8adfbef90 Reviewed-by: Oliver Wolff --- src/gui/kernel/qevent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index a2576cb1b5..0caba17ddd 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -4008,6 +4008,10 @@ QT_WARNING_POP dbg << " gbl="; QtDebugUtils::formatQPoint(dbg, me->globalPosition()); dbg << " dev=" << me->device() << ')'; + if (me->source() != Qt::MouseEventNotSynthesized) { + dbg << " source="; + QtDebugUtils::formatQEnum(dbg, me->source()); + } } break; # if QT_CONFIG(wheelevent)