aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-03-10 10:40:47 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-03-12 15:48:31 +0100
commit92dc998f6d27347842fd57b0a1c6220426eb9ee2 (patch)
treee0a6a58645c1146dcad671d8cf08108aadefab13 /examples
parent1eb249477fb510e4950c53a6a4191af79f4fbc98 (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 'examples')
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quickcontrols2/texteditor/documenthandler.cpp b/examples/quickcontrols2/texteditor/documenthandler.cpp
index 5def1b61..e840d411 100644
--- a/examples/quickcontrols2/texteditor/documenthandler.cpp
+++ b/examples/quickcontrols2/texteditor/documenthandler.cpp
@@ -385,3 +385,5 @@ void DocumentHandler::setModified(bool m)
if (m_document)
m_document->textDocument()->setModified(m);
}
+
+#include "moc_documenthandler.cpp"