Required for Cocoa platform menus support, we need a
way to update state after focusWindow() result changes.
Change-Id: Idc573888c3d75bcbff2252e243c4b57b15fc2fcd
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
*/
/*!
+ \fn QGuiApplication::focusWindowChanged(QWindow *focusWindow)
+
+ This signal is emitted when the focused window changes.
+ \sa focusWindow()
+*/
+
+/*!
Returns the QObject in currently active window that will be final receiver of events
tied to focus, such as key events.
*/
if (previousFocusObject != qApp->focusObject())
self->q_updateFocusObject(qApp->focusObject());
}
+
+ emit qApp->focusWindowChanged(newFocus);
}
void QGuiApplicationPrivate::processWindowStateChangedEvent(QWindowSystemInterfacePrivate::WindowStateChangedEvent *wse)
void screenAdded(QScreen *screen);
void lastWindowClosed();
void focusObjectChanged(QObject *focusObject);
+ void focusWindowChanged(QWindow *focusWindow);
protected:
bool event(QEvent *);