Diaglib: Output QGuiApplication::focusObject() in focus changes, too.
This is useful for diagnosing QML focus issues. Task-number: QTBUG-48199 Change-Id: Iff2cc35850e7020a9198b38256d1331587d0eefb Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
This commit is contained in:
parent
f8cc0164db
commit
45bf434cdc
@ -190,8 +190,13 @@ static void formatApplicationState(QDebug debug)
|
||||
debug << "\n QGuiApplication::modalWindow = ";
|
||||
formatObject(mw, debug);
|
||||
}
|
||||
debug << "\n QGuiApplication::focusWindow = ";
|
||||
formatObject(QGuiApplication::focusWindow(), debug);
|
||||
const QObject *focusObject = QGuiApplication::focusObject();
|
||||
const QObject *focusWindow = QGuiApplication::focusWindow();
|
||||
debug << "\n QGuiApplication::focusObject = ";
|
||||
formatObject(focusObject, debug);
|
||||
if (focusWindow && focusWindow != focusObject)
|
||||
debug << "\n QGuiApplication::focusWindow = ";
|
||||
formatObject(focusWindow, debug);
|
||||
#endif // HAVE_GUI_APPLICATION
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user