From b1e6dc8d9cc7ebd619bf44ef5970f1bceb48f0b5 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 18 Sep 2023 10:34:53 +0200 Subject: [PATCH] Compress QTimer events the same on all platforms It was limited to only the most common platform, Windows. Change-Id: I1821a5201f85b14f8f43469775af816519724f6b Reviewed-by: Fabian Kosmale Reviewed-by: Thiago Macieira --- src/corelib/kernel/qcoreapplication.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 33c8c9fc03..5a4dcb467c 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -1728,7 +1728,6 @@ bool QCoreApplication::compressEvent(QEvent *event, QObject *receiver, QPostEven Q_ASSERT(receiver); Q_ASSERT(postedEvents); -#ifdef Q_OS_WIN // compress posted timers to this object. if (event->type() == QEvent::Timer && receiver->d_func()->postedEvents > 0) { int timerId = ((QTimerEvent *) event)->timerId(); @@ -1741,7 +1740,6 @@ bool QCoreApplication::compressEvent(QEvent *event, QObject *receiver, QPostEven } return false; } -#endif if (event->type() == QEvent::DeferredDelete) { if (receiver->d_ptr->deleteLaterCalled) {