Fix build with the disabled 'translation' feature
Definition of QMetaObject::metaType() should be outside the QT_NO_TRANSLATION guard. Fixes: QTBUG-104959 Change-Id: Icb1bf6e9cbad8b4c70ca09b5e7eafd125d866557 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4f56b7d841b9c882dfa12a8aa55c1ebe0f9ef0e0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7e47bc09cc
commit
dd8192c8f0
@ -357,6 +357,7 @@ QString QMetaObject::tr(const char *s, const char *c, int n) const
|
||||
{
|
||||
return QCoreApplication::translate(objectClassName(this), s, c, n);
|
||||
}
|
||||
#endif // QT_NO_TRANSLATION
|
||||
|
||||
/*!
|
||||
\since 6.2
|
||||
@ -384,7 +385,6 @@ QMetaType QMetaObject::metaType() const
|
||||
return QMetaType::fromName(className()); // try lookup by name in that case
|
||||
}
|
||||
}
|
||||
#endif // QT_NO_TRANSLATION
|
||||
|
||||
/*!
|
||||
Returns the method offset for this class; i.e. the index position
|
||||
|
Loading…
x
Reference in New Issue
Block a user