summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_x11_glib.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-09-18 01:13:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-09-18 01:13:31 +0900
commitf849f22528ee9eb5eeb1f9aa92822846b2b3e01f (patch)
tree0ec893f6112e8abf121bb35b9755a43e2db99833 /src/kernel/qeventloop_x11_glib.cpp
parent2848b517a64d4ad5424af224772cea26bdbf375c (diff)
downloadqt3-f849f22528ee9eb5eeb1f9aa92822846b2b3e01f.tar.gz
qt3-f849f22528ee9eb5eeb1f9aa92822846b2b3e01f.zip
QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT conversion to align to updated admin module
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/qeventloop_x11_glib.cpp')
-rw-r--r--src/kernel/qeventloop_x11_glib.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kernel/qeventloop_x11_glib.cpp b/src/kernel/qeventloop_x11_glib.cpp
index 2bf1f63..5c38c7b 100644
--- a/src/kernel/qeventloop_x11_glib.cpp
+++ b/src/kernel/qeventloop_x11_glib.cpp
@@ -46,10 +46,10 @@
#include "qcolor_p.h"
#include "qt_x11_p.h"
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
# include "qmutex.h"
# include "qthread.h"
-#endif // QT_THREAD_SUPPORT
+#endif // TQT_THREAD_SUPPORT
#include <errno.h>
@@ -295,7 +295,7 @@ bool QEventLoop::processX11Events()
XEvent event;
int nevents = 0;
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
QMutexLocker locker( QApplication::qt_mutex );
#endif
@@ -383,7 +383,7 @@ bool QEventLoop::gsourcePrepare(GSource *gs, int * timeout)
ProcessEventsFlags flags = d->pev_flags;
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
QMutexLocker locker( QApplication::qt_mutex );
#endif
@@ -535,10 +535,10 @@ bool QEventLoop::gsourceDispatch(GSource *gs) {
Q_UNUSED(gs);
// relock the GUI mutex before processing any pending events
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
QMutexLocker locker( QApplication::qt_mutex );
#endif
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
if (locker.mutex()) locker.mutex()->lock();
#endif
@@ -608,13 +608,13 @@ bool QEventLoop::gsourceDispatch(GSource *gs) {
// color approx. optimization - only on X11
qt_reset_color_avail();
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
if (locker.mutex()) locker.mutex()->unlock();
#endif
processX11Events();
}
else {
-#if defined(QT_THREAD_SUPPORT)
+#if defined(TQT_THREAD_SUPPORT)
if (locker.mutex()) locker.mutex()->unlock();
#endif
}
@@ -629,9 +629,9 @@ bool QEventLoop::gsourceDispatch(GSource *gs) {
bool QEventLoop::hasPendingEvents() const
{
-#ifdef QT_THREAD_SUPPORT
+#ifdef TQT_THREAD_SUPPORT
QMutexLocker locker( QApplication::qt_mutex );
-#endif // QT_THREAD_SUPPORT
+#endif // TQT_THREAD_SUPPORT
extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
return ( qGlobalPostedEventsCount() || ( (qt_is_gui_used && QApplication::isGuiThread()) ? XPending( QPaintDevice::x11AppDisplay() ) : 0));