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 <lars.knoll@qt.io> (cherry picked from commit 2e6c37fe51b5f6073db0c7335c4a4272269d482f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d58d8d2aea
commit
168855901a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user