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().

Pick-to: 6.1
Change-Id: I26b8286f61534f88b649fffd166c43afbb80927f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Thiago Macieira 2021-03-14 09:53:08 -07:00
parent c2348e2c7a
commit 2e6c37fe51
1 changed files with 1 additions and 1 deletions

View File

@ -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);