From 90ed68910fdf3cc94edf352cf12edc265ccda1d7 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Tue, 24 Sep 2024 15:08:51 +0200 Subject: [PATCH] Improve logging in QWindowPrivate::forwardToPopup() Debugging output printed the return value of event->isAccepted() without information what the value represents. Add it. Pick-to: 6.8.0 Change-Id: Ifbef69fed5d4aadd732c234c2ac74495560e65b6 Reviewed-by: Shawn Rutledge (cherry picked from commit 5d028371bd8d775703739db51936cbd582626580) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index f950ad1d08e..755664b99da 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -2455,13 +2455,15 @@ const QWindow *QWindowPrivate::forwardToPopup(QEvent *event, const QWindow */*ac ret = popupWindow; } qCDebug(lcPopup) << q << "forwarded" << event->type() << "to popup" << popupWindow - << "handled?" << (ret != nullptr) << event->isAccepted(); + << "handled?" << (ret != nullptr) + << "accepted?" << event->isAccepted(); return ret; } else if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease) { if (QCoreApplication::sendSpontaneousEvent(popupWindow, event)) ret = popupWindow; qCDebug(lcPopup) << q << "forwarded" << event->type() << "to popup" << popupWindow - << "handled?" << (ret != nullptr) << event->isAccepted(); + << "handled?" << (ret != nullptr) + << "accepted?" << event->isAccepted(); return ret; } }