From 70d91b5c46ea821b75ecb9c0091e8e425456dae5 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 18 Nov 2011 08:48:07 +1000 Subject: Fixed compile of autotests with -qtnamespace. Make sure to use the Qt namespace for qGlobalPostedEventsCount. Change-Id: I558a0b0fba1e22a2edd96f9499a2bab82046c4a4 Reviewed-by: Toby Tomkins --- tests/auto/corelib/thread/qthread/tst_qthread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/auto/corelib/thread') diff --git a/tests/auto/corelib/thread/qthread/tst_qthread.cpp b/tests/auto/corelib/thread/qthread/tst_qthread.cpp index 7c0d8cdc48..302fb0296f 100644 --- a/tests/auto/corelib/thread/qthread/tst_qthread.cpp +++ b/tests/auto/corelib/thread/qthread/tst_qthread.cpp @@ -1221,6 +1221,10 @@ void tst_QThread::isRunningInFinished() } } +QT_BEGIN_NAMESPACE +Q_CORE_EXPORT uint qGlobalPostedEventsCount(); +QT_END_NAMESPACE + class DummyEventDispatcher : public QAbstractEventDispatcher { public: DummyEventDispatcher() : QAbstractEventDispatcher(), visited(false) {} @@ -1231,7 +1235,6 @@ public: return false; } bool hasPendingEvents() { - extern uint qGlobalPostedEventsCount(); // from qapplication.cpp return qGlobalPostedEventsCount(); } void registerSocketNotifier(QSocketNotifier *) {} -- cgit v1.2.3