summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qeventdispatcher_glib_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-07-15 14:57:07 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-07-20 07:35:34 (GMT)
commitd9b023b5d38d858f29e7095aeb25a84f09a19c13 (patch)
tree565f6cb1ba2224142ee80bcf426a5df5e2fad34a /src/gui/kernel/qeventdispatcher_glib_qpa.cpp
parente97e3616a33ed93283157514c6b208e071aca8be (diff)
downloadQt-d9b023b5d38d858f29e7095aeb25a84f09a19c13.zip
Qt-d9b023b5d38d858f29e7095aeb25a84f09a19c13.tar.gz
Qt-d9b023b5d38d858f29e7095aeb25a84f09a19c13.tar.bz2
Eventloop integration in Lighthouse
This is exprimental and does not work with the glib eventloop.
Diffstat (limited to 'src/gui/kernel/qeventdispatcher_glib_qpa.cpp')
-rw-r--r--src/gui/kernel/qeventdispatcher_glib_qpa.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qeventdispatcher_glib_qpa.cpp b/src/gui/kernel/qeventdispatcher_glib_qpa.cpp
index 9585b26..981991d 100644
--- a/src/gui/kernel/qeventdispatcher_glib_qpa.cpp
+++ b/src/gui/kernel/qeventdispatcher_glib_qpa.cpp
@@ -133,6 +133,14 @@ QPAEventDispatcherGlib::~QPAEventDispatcherGlib()
bool QPAEventDispatcherGlib::processEvents(QEventLoop::ProcessEventsFlags flags)
{
+ static bool init = false;
+ if (!init) {
+ if (QApplicationPrivate::platformIntegration()->createEventLoopIntegration()) {
+ qWarning("Eventloop integration is not supported by the glib event dispatcher");
+ qWarning("Use the UNIX event dispatcher by defining environment variable QT_NO_GLIB=1");
+ }
+ init = true;
+ }
return QEventDispatcherGlib::processEvents(flags);
}