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:
parent
e9478a1e8a
commit
70d91b5c46
@ -597,7 +597,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
bool hasPendingEvents() {
|
||||
extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
|
||||
return qGlobalPostedEventsCount();
|
||||
}
|
||||
void registerSocketNotifier(QSocketNotifier *) {}
|
||||
|
@ -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 *) {}
|
||||
|
Loading…
Reference in New Issue
Block a user