Replace use of deprecated API in macOS event dispatchers
Change-Id: I077ba12b406f662ba22b2f2cddf0171963335739 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>bb10
parent
388d539865
commit
401e81063f
|
|
@ -423,7 +423,7 @@ bool QEventDispatcherCoreFoundation::processPostedEvents()
|
|||
m_processEvents.processedPostedEvents = true;
|
||||
|
||||
qCDebug(lcEventDispatcher) << "Sending posted events for"
|
||||
<< QEventLoop::ProcessEventsFlags(m_processEvents.flags.load());
|
||||
<< QEventLoop::ProcessEventsFlags(m_processEvents.flags.loadRelaxed());
|
||||
QCoreApplication::sendPostedEvents();
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ void QCocoaEventDispatcherPrivate::processPostedEvents()
|
|||
return;
|
||||
}
|
||||
|
||||
int serial = serialNumber.load();
|
||||
int serial = serialNumber.loadRelaxed();
|
||||
if (!threadData->canWait || (serial != lastSerial)) {
|
||||
lastSerial = serial;
|
||||
QCoreApplication::sendPostedEvents();
|
||||
|
|
|
|||
Loading…
Reference in New Issue