diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-03-14 09:53:08 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-05-17 10:13:52 -0700 |
commit | 50c838d4b5cde32db6bfcf8dda4dfbf5c34b9b17 (patch) | |
tree | 33a67d529aa137f110a3216e282b0f641df0f148 /src/corelib/thread/qthread.h | |
parent | 5268edf5811251a432fb5096aef6de4ef372f619 (diff) |
Make the exit() methods in QEventLoop and QThread be slots
The documentation for QCoreApplication::exit() even refers to it as
such. Instead of refactoring the documentation to explain that it isn't,
just make it a slot and do the same for the other classes.
Complements 2e6c37fe51b5f6073db0c7335c4a4272269d482f.
[ChangeLog][QtCore][QEventLoop] exit() is now a slot, like quit().
[ChangeLog][QtCore][QThread] exit() is now a slot, like quit().
Change-Id: Ic42004c9bf71440eb433fffd167f4a1b89bcac80
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/thread/qthread.h')
-rw-r--r-- | src/corelib/thread/qthread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/thread/qthread.h b/src/corelib/thread/qthread.h index e5db44638d..51cd3eadcc 100644 --- a/src/corelib/thread/qthread.h +++ b/src/corelib/thread/qthread.h @@ -99,8 +99,6 @@ public: void setStackSize(uint stackSize); uint stackSize() const; - void exit(int retcode = 0); - QAbstractEventDispatcher *eventDispatcher() const; void setEventDispatcher(QAbstractEventDispatcher *eventDispatcher); @@ -115,6 +113,7 @@ public: public Q_SLOTS: void start(Priority = InheritPriority); void terminate(); + void exit(int retcode = 0); void quit(); public: |