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 <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
7fdef80a6b
commit
b1e6dc8d9c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue