46 #include "qplatformdefs.h" 90 QApplicationPrivate::processWindowSystemEvent(event);
122 d->userEventSource->q =
this;
129 g_source_destroy(&
d->userEventSource->source);
130 g_source_unref(&
d->userEventSource->source);
131 d->userEventSource = 0;
136 static bool init =
false;
138 if (QApplicationPrivate::platformIntegration()->createEventLoopIntegration()) {
139 qWarning(
"Eventloop integration is not supported by the glib event dispatcher");
140 qWarning(
"Use the UNIX event dispatcher by defining environment variable QT_NO_GLIB=1");
bool filterEvent(void *message)
Sends message through the event filter that was set by setEventFilter().
#define QT_END_NAMESPACE
This macro expands to.
GUserEventSource * userEventSource
QPAEventDispatcherGlib(QObject *parent=0)
static GSourceFuncs userEventSourceFuncs
The QObject class is the base class of all Qt objects.
static gboolean userEventSourcePrepare(GSource *s, gint *timeout)
static int windowSystemEventsQueued()
static gboolean userEventSourceCheck(GSource *source)
#define QT_BEGIN_NAMESPACE
This macro expands to.
GMainContext * mainContext
Q_CORE_EXPORT void qWarning(const char *,...)
QPAEventDispatcherGlib * q
bool processEvents(QEventLoop::ProcessEventsFlags flags)
Processes pending events that match flags until there are no more events to process.
static gboolean userEventSourceDispatch(GSource *s, GSourceFunc, gpointer)
static WindowSystemEvent * getWindowSystemEvent()
struct _GMainContext GMainContext
~QPAEventDispatcherGlib()
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
bool processEvents(QEventLoop::ProcessEventsFlags flags)
Processes pending events that match flags until there are no more events to process.
QPAEventDispatcherGlibPrivate(GMainContext *context=0)