summaryrefslogtreecommitdiffstats
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 17:29:24 +0000
commit924404b3cc2efa668317f04d3fad2970bdd98f60 (patch)
treea581da60cfd05ce496dc96fcb7b2da03de79b3ca
parent526c66ec7d6abd275f250a74318501c95a1db0d3 (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>
-rw-r--r--src/corelib/global/qglobal.cpp2
-rw-r--r--src/corelib/global/qglobal.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index f2f9a1c06d..4b74dd17c2 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -1095,7 +1095,7 @@ static_assert(sizeof(qint64) == 8, "Internal error, qint64 is misdefined");
*/
/*! \typedef QFunctionPointer
- \relates <QtGlobal>
+ \relates <QFunctionPointer>
This is a typedef for \c{void (*)()}, a pointer to a function that takes
no arguments and returns void.
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index c7b5fb3255..33ab5b3af1 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1007,6 +1007,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)