Call QObject::metaObject

This commit is contained in:
Jonas Kvinge
2025-01-17 09:08:59 +01:00
parent 726c105ed6
commit e6a0945dfa
20 changed files with 20 additions and 20 deletions

View File

@@ -250,7 +250,7 @@ Application::Application(QObject *parent)
p_(new ApplicationImpl(this)),
g_thread_(nullptr) {
setObjectName(QLatin1String(metaObject()->className()));
setObjectName(QLatin1String(QObject::metaObject()->className()));
const QMetaObject *mo = QAbstractEventDispatcher::instance(QCoreApplication::instance()->thread())->metaObject();
if (mo && strcmp(mo->className(), "QEventDispatcherGlib") != 0 && strcmp(mo->superClass()->className(), "QEventDispatcherGlib") != 0) {