macOS: Add some logging to QCocoaInputContext

Pick-to: 6.2
Change-Id: I8e28cdaf89e8b741a5047f00016e17b8916edece
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2021-08-18 21:03:32 +02:00
parent c7ec8c0973
commit e5bebd883c

View File

@ -102,9 +102,10 @@ QCocoaInputContext::~QCocoaInputContext()
/*! /*!
\brief Cancels a composition. \brief Cancels a composition.
*/ */
void QCocoaInputContext::reset() void QCocoaInputContext::reset()
{ {
qCDebug(lcQpaInputMethods) << "Resetting input method";
QPlatformInputContext::reset(); QPlatformInputContext::reset();
if (!m_focusWindow) if (!m_focusWindow)
@ -130,7 +131,8 @@ void QCocoaInputContext::connectSignals()
void QCocoaInputContext::focusObjectChanged(QObject *focusObject) void QCocoaInputContext::focusObjectChanged(QObject *focusObject)
{ {
Q_UNUSED(focusObject); qCDebug(lcQpaInputMethods) << "Focus object changed to" << focusObject;
if (m_focusWindow == QGuiApplication::focusWindow()) { if (m_focusWindow == QGuiApplication::focusWindow()) {
if (!m_focusWindow) if (!m_focusWindow)
return; return;