Use QEvent::registerEventType for custom event types

This commit is contained in:
Ilya Fedin 2023-08-16 14:54:31 +04:00 committed by John Preston
parent 19d5b17d2e
commit ec9f8943de
3 changed files with 3 additions and 3 deletions

View File

@ -582,7 +582,7 @@ void Sandbox::registerEnterFromEventLoop() {
bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) {
const auto type = e->type();
if (type == base::InvokeQueuedEvent::kType) {
if (type == base::InvokeQueuedEvent::Type()) {
static_cast<base::InvokeQueuedEvent*>(e)->invoke();
return true;
} else if (receiver == this) {

@ -1 +1 @@
Subproject commit 185679354c7d0b7dd8d719daaaf806d177cb20bf
Subproject commit 9c68fbe3cc4242a5f5f76dfda8ceab511cc08c70

@ -1 +1 @@
Subproject commit 0ea27ae051774047cc00b92778f98c2f243712e8
Subproject commit 632626b1921e99aaea6d02a9f7ebbb6354161365