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 <shawn.rutledge@qt.io> (cherry picked from commit 5d028371bd8d775703739db51936cbd582626580) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
16410ae7be
commit
90ed68910f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user