diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-10 10:40:47 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-12 15:48:31 +0100 |
commit | 92dc998f6d27347842fd57b0a1c6220426eb9ee2 (patch) | |
tree | e0a6a58645c1146dcad671d8cf08108aadefab13 /src/quicktemplates2/qquickmenubaritem.cpp | |
parent | 1eb249477fb510e4950c53a6a4191af79f4fbc98 (diff) |
Fix build failures as a result of QMetaType changes in qtbase
moc now stores the QMetaType of properties as a result of
46f407126ef3e94d59254012cdc34d6a4ad2faf2 in qtbase, which requires
full type information about the property type inside the moc generated
source file.
Many of the property types were forward-declared, and this resulted
in build errors like
"invalid application of 'sizeof' to an incomplete type 'QQuickTransition'"
Make sure to explicitly include the moc files inside the counterpart
.cpp files, so that full information is available from included headers.
Fixes: QTBUG-82774
Change-Id: I5971713864992398daed72ce9f6ab866668cf8e1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickmenubaritem.cpp')
-rw-r--r-- | src/quicktemplates2/qquickmenubaritem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickmenubaritem.cpp b/src/quicktemplates2/qquickmenubaritem.cpp index ee407f5b..bfb23a06 100644 --- a/src/quicktemplates2/qquickmenubaritem.cpp +++ b/src/quicktemplates2/qquickmenubaritem.cpp @@ -183,3 +183,5 @@ QAccessible::Role QQuickMenuBarItem::accessibleRole() const #endif QT_END_NAMESPACE + +#include "moc_qquickmenubaritem_p.cpp" |