fix: QObjectPrivate::threadData type change when qt >=5.15
| | |
| | | |
| | | if (!obj) |
| | | continue; |
| | | #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) |
| | | if (QObjectPrivate::get(obj)->threadData.loadRelaxed() != |
| | | d->threadData.loadRelaxed()) { |
| | | qWarning( |
| | | "QCoreApplication: Object event filter cannot be in a different thread."); |
| | | #else |
| | | if (QObjectPrivate::get(obj)->threadData != d->threadData) { |
| | | #endif |
| | | qWarning("QCoreApplication: Object event filter cannot be in a different " |
| | | "thread."); |
| | | continue; |
| | | } |
| | | if (obj->eventFilter(receiver, event)) |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |