diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-03-15 12:14:43 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-03-16 00:30:34 +0100 |
commit | 7d5604c19441e215c69c8f7b5a0229316373264f (patch) | |
tree | f26f19f4f87bdc4f1b660c5681fa8642fc24b352 /src/corelib/kernel/qelapsedtimer.h | |
parent | aaa3184f8d5d14658c0c0fd7f7d9dd8bc639ffeb (diff) |
Deprecate QElapsedTimer::TickCounter
Also remove left-over code paths related to it.
[ChangeLog][QtCore] QElapsedTimer::TickCounter enum is now
deprecated. Qt does not use the Windows API behind this
enum already since Qt 5.9, so it's fair to assume that
any code path relying on the enum is dead code.
Change-Id: I308fe23658835034774e2015a8ee64659102de56
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qelapsedtimer.h')
-rw-r--r-- | src/corelib/kernel/qelapsedtimer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qelapsedtimer.h b/src/corelib/kernel/qelapsedtimer.h index a7523add19..d16c31113e 100644 --- a/src/corelib/kernel/qelapsedtimer.h +++ b/src/corelib/kernel/qelapsedtimer.h @@ -51,7 +51,8 @@ public: enum ClockType { SystemTime, MonotonicClock, - TickCounter, + TickCounter Q_DECL_ENUMERATOR_DEPRECATED_X( + "Not supported anymore. Use PerformanceCounter instead."), MachAbsoluteTime, PerformanceCounter }; |