summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-08-04 16:41:08 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-05 16:18:03 +0000
commit2ef512f24312884eddff341428257114d04fc2e2 (patch)
treea4e9adae9d00fe98be2380d8a729c62572bcade7 /src/corelib/global/qglobal.h
parent8531129c0af71539f60d05a78f5435e94090732a (diff)
Fix generation of the forward header for QFunctionPointer
The forward header for QFunctionPointer was being generated by accident, apparently syncqt is confused because of some of the preceding lines. If the lines are rearranged or removed, the header won't be generated. Not sure if there's much value in generating a header for it, but at least one of Qt sources (qeglfsemulatorintegration.h) is using it in an include statment, and there's a chance it's used in the user code as well. Change-Id: Iced505881ddb07e7a8336fcdfb7d3e5397c6466c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 8b2145463b38291dfa0ca2acf4a85552b7383a60) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r--src/corelib/global/qglobal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 9249becc27..147933066f 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1035,6 +1035,9 @@ Q_CORE_EXPORT void qBadAlloc();
template <typename T>
inline T *q_check_ptr(T *p) { Q_CHECK_PTR(p); return p; }
+#if 0
+#pragma qt_class(QFunctionPointer)
+#endif
typedef void (*QFunctionPointer)();
#if !defined(Q_UNIMPLEMENTED)