summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qfunctionpointer.h
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-09-30 12:28:19 +0200
committerIvan Solovev <ivan.solovev@qt.io>2022-10-06 11:36:46 +0200
commitd7cca67352c7e6ef69222b340b6488b48f8fae30 (patch)
tree677f451747caceb309cb7930bcb33675b5310813 /src/corelib/global/qfunctionpointer.h
parent0b791f6a90714deb2e46d83e072aa104707fb10f (diff)
Move QFunctionPointer typedef to a separate header
Task-number: QTBUG-99313 Task-number: QTBUG-106154 Change-Id: I8c62e5c2c2f80d5ce1d4dce69eebbe7d1ebbfd52 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/global/qfunctionpointer.h')
-rw-r--r--src/corelib/global/qfunctionpointer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/corelib/global/qfunctionpointer.h b/src/corelib/global/qfunctionpointer.h
new file mode 100644
index 00000000000..3884954f897
--- /dev/null
+++ b/src/corelib/global/qfunctionpointer.h
@@ -0,0 +1,23 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QFUNCTIONPOINTER_H
+#define QFUNCTIONPOINTER_H
+
+#include <QtCore/qtconfigmacros.h>
+
+#if 0
+#pragma qt_class(QFunctionPointer)
+#endif
+
+#if defined(__cplusplus)
+
+QT_BEGIN_NAMESPACE
+
+typedef void (*QFunctionPointer)();
+
+QT_END_NAMESPACE
+
+#endif // __cplusplus
+
+#endif // QFUNCTIONPOINTER_H