Skip to content

Commit

Permalink
Touch event dispatching: change qCWarning to qCDebug if no target window
Browse files Browse the repository at this point in the history
Warning messages are by default emitted for qt.* logging categories. But
neither the end user nor the application developer can do anything about
this particular warning (which gets emitted on macOS when using the
touch pad) - it's only useful for Qt developers.

So change the logging level to debug.

Pick-to: 6.8 6.7 6.5
Fixes: QTBUG-125589
Change-Id: I36e6e553494054488209139e3238b7bd11bd170a
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
vohi committed Jul 17, 2024
1 parent 6e7c158 commit 2b021b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/kernel/qguiapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
}
// If we somehow still don't have a window, we can't deliver this touchpoint. (should never happen)
if (Q_UNLIKELY(!window)) {
qCWarning(lcPtrDispatch) << "skipping" << &tempPt << ": no target window";
qCDebug(lcPtrDispatch) << "skipping" << &tempPt << ": no target window";
continue;
}
QMutableEventPoint::update(tempPt, ep);
Expand Down

0 comments on commit 2b021b2

Please sign in to comment.