summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-05-17 09:40:48 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-05-18 17:54:15 +0200
commit7b736e1faf1fb6ed69a0a4b53b96ec3a9e9941e8 (patch)
tree0f6752d024bfc297209b82295ee811a2cec83dd6 /src/corelib
parentf2fea2325de7554e226767d94eb01574a069a324 (diff)
Make qGlobalPostedEventsCount() auto-test-exported-only
The only in-tree user outside QtCore is tst_QCoreApplication, guard the (single) test function there with QT_BUILD_INTERNAL. Change-Id: Ibc87ba76f2135cd8283acd75318f80a95e4b5c45 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qabstracteventdispatcher_p.h2
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qabstracteventdispatcher_p.h b/src/corelib/kernel/qabstracteventdispatcher_p.h
index 6fa77c146e..81ce39ffb8 100644
--- a/src/corelib/kernel/qabstracteventdispatcher_p.h
+++ b/src/corelib/kernel/qabstracteventdispatcher_p.h
@@ -20,7 +20,7 @@
QT_BEGIN_NAMESPACE
-Q_CORE_EXPORT uint qGlobalPostedEventsCount();
+Q_AUTOTEST_EXPORT uint qGlobalPostedEventsCount();
class Q_CORE_EXPORT QAbstractEventDispatcherPrivate : public QObjectPrivate
{
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 9f5d91a404..1e8b209ff8 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -321,7 +321,7 @@ Q_CONSTINIT bool QCoreApplicationPrivate::is_app_running = false;
// app closing down if true
Q_CONSTINIT bool QCoreApplicationPrivate::is_app_closing = false;
-Q_CORE_EXPORT uint qGlobalPostedEventsCount()
+uint qGlobalPostedEventsCount()
{
QThreadData *currentThreadData = QThreadData::current();
return currentThreadData->postEventList.size() - currentThreadData->postEventList.startOffset;