Output source in debug operator of QMouseEvent

Task-number: QTBUG-88678
Task-number: QTBUG-46412
Change-Id: If9282f5b845ef16ff7e7ce523f78e3b8adfbef90
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit 45c623c42ac26eafff8e401709fa4c97ed9cd585)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2020-11-24 10:59:14 +01:00 committed by Qt Cherry-pick Bot
parent f9ccf9d3f1
commit 5fb3b9e260

View File

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