diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-15 14:57:07 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-20 07:35:34 (GMT) |
commit | d9b023b5d38d858f29e7095aeb25a84f09a19c13 (patch) | |
tree | 565f6cb1ba2224142ee80bcf426a5df5e2fad34a /src/gui/kernel/qeventdispatcher_glib_qpa.cpp | |
parent | e97e3616a33ed93283157514c6b208e071aca8be (diff) | |
download | Qt-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.cpp | 8 |
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); } |