Fixed compile of autotests with -qtnamespace.

Make sure to use the Qt namespace for qGlobalPostedEventsCount.

Change-Id: I558a0b0fba1e22a2edd96f9499a2bab82046c4a4
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
This commit is contained in:
Rohan McGovern 2011-11-18 08:48:07 +10:00 committed by Qt by Nokia
parent e9478a1e8a
commit 70d91b5c46
2 changed files with 4 additions and 2 deletions

View File

@ -597,7 +597,6 @@ public:
return false;
}
bool hasPendingEvents() {
extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
return qGlobalPostedEventsCount();
}
void registerSocketNotifier(QSocketNotifier *) {}

View File

@ -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 *) {}