6#include <QtCore/qglobal.h>
33#ifdef __cpp_lib_saturation_arithmetic
36template <
typename To,
typename From>
39 static_assert(
std::is_integral_v<To>);
40 static_assert(
std::is_integral_v<From>);
43 constexpr auto Lo = (
std::numeric_limits<To>::min)();
44 constexpr auto Hi = (
std::numeric_limits<To>::max)();
46 if constexpr (
std::is_signed_v<From> ==
std::is_signed_v<To>) {
52 if constexpr (
std::is_signed_v<From>) {
58 using FromU = std::make_unsigned_t<From>;
59 using ToU = std::make_unsigned_t<To>;
60 return FromU(x) > ToU(Hi) ? Hi : To(x);
QZeroTimerEvent(int timerId)
constexpr auto saturate_cast(From x)
static HWND qt_create_internal_window(const QEventDispatcherWin32 *eventDispatcher)
static quint64 qt_msectime()
#define TIME_KILL_SYNCHRONOUS
@ SendPostedEventsTimerId
@ WM_QT_ACTIVATENOTIFIERS
static bool isUserInputMessage(UINT message)
static ULONG calculateNextTimeout(WinTimerInfo *t, quint64 currentTime)
QHash< qintptr, QSockFd > QSFDict
QHash< int, WinTimerInfo * > WinTimerDict
QHash< qintptr, QSockNot * > QSNDict
QSockFd(long ev=0, long ma=0)
~QWindowsMessageWindowClassContext()
QWindowsMessageWindowClassContext()
bool usesExtendedInterval