This removes the last use of QWindowSystemInterfacePrivate
from outside QtGui, so we can make that class non-exported
again.
return (nevents > 0);
}
+int QWindowSystemInterface::windowSystemEventsQueued()
+{
+ return QWindowSystemInterfacePrivate::windowSystemEventsQueued();
+}
+
QT_END_NAMESPACE
// For event dispatcher implementations
static bool sendWindowSystemEvents(QAbstractEventDispatcher *eventDispatcher, QEventLoop::ProcessEventsFlags flags);
+ static int windowSystemEventsQueued();
};
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
-class Q_GUI_EXPORT QWindowSystemInterfacePrivate {
+class QWindowSystemInterfacePrivate {
public:
enum EventType {
Close,
Q_UNUSED(s)
Q_UNUSED(timeout)
- return QWindowSystemInterfacePrivate::windowSystemEventsQueued() > 0;
+ return QWindowSystemInterface::windowSystemEventsQueued() > 0;
}
static gboolean userEventSourceCheck(GSource *source)
bool QEventDispatcherQPA::hasPendingEvents()
{
extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
- return qGlobalPostedEventsCount() || QWindowSystemInterfacePrivate::windowSystemEventsQueued();
+ return qGlobalPostedEventsCount() || QWindowSystemInterface::windowSystemEventsQueued();
}
void QEventDispatcherQPA::flush()