From 168855901a760bbe5e4a894dba640fbfe0de4805 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 14 Mar 2021 09:53:08 -0700 Subject: [PATCH] QCoreApplication::exit: make it a slot The documentation even refers to it as such. Instead of refactoring the documentation to explain that it isn't, just make it a slot. [ChangeLog][QtCore][QCoreApplication] exit() is now a slot, like quit(). Change-Id: I26b8286f61534f88b649fffd166c43afbb80927f Reviewed-by: Lars Knoll (cherry picked from commit 2e6c37fe51b5f6073db0c7335c4a4272269d482f) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qcoreapplication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qcoreapplication.h b/src/corelib/kernel/qcoreapplication.h index a9a4765941b..4d77f9f067d 100644 --- a/src/corelib/kernel/qcoreapplication.h +++ b/src/corelib/kernel/qcoreapplication.h @@ -120,7 +120,6 @@ public: static int exec(); static void processEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); static void processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime); - static void exit(int retcode = 0); static bool sendEvent(QObject *receiver, QEvent *event); static void postEvent(QObject *receiver, QEvent *event, int priority = Qt::NormalEventPriority); @@ -165,6 +164,7 @@ public: public Q_SLOTS: static void quit(); + static void exit(int retcode = 0); Q_SIGNALS: void aboutToQuit(QPrivateSignal);