Remove unneeded function QGuiApplicationPrivate::emitLastWindowClosed
It only has a single call site nowadays. Change-Id: I6f486dec51f76e1fb231fb7276bc8c856885bee1 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
947188b969
commit
954b58f368
|
|
@ -3559,7 +3559,8 @@ void QGuiApplicationPrivate::maybeQuitOnLastWindowClosed(QWindow *closedWindow)
|
|||
return;
|
||||
}
|
||||
|
||||
emitLastWindowClosed();
|
||||
if (in_exec)
|
||||
emit q_func()->lastWindowClosed();
|
||||
|
||||
if (QGuiApplication::quitOnLastWindowClosed())
|
||||
maybeQuit();
|
||||
|
|
@ -3577,13 +3578,6 @@ void QGuiApplicationPrivate::maybeQuitOnLastWindowClosed(QWindow *closedWindow)
|
|||
\sa QWindow::close(), QWindow::isTopLevel()
|
||||
*/
|
||||
|
||||
void QGuiApplicationPrivate::emitLastWindowClosed()
|
||||
{
|
||||
if (qGuiApp && qGuiApp->d_func()->in_exec) {
|
||||
emit qGuiApp->lastWindowClosed();
|
||||
}
|
||||
}
|
||||
|
||||
bool QGuiApplicationPrivate::shouldQuit()
|
||||
{
|
||||
const QWindowList processedWindows;
|
||||
|
|
|
|||
|
|
@ -205,8 +205,6 @@ public:
|
|||
return alignment;
|
||||
}
|
||||
|
||||
static void emitLastWindowClosed();
|
||||
|
||||
QPixmap getPixmapCursor(Qt::CursorShape cshape);
|
||||
|
||||
void _q_updateFocusObject(QObject *object);
|
||||
|
|
|
|||
Loading…
Reference in New Issue