summaryrefslogtreecommitdiff
path: root/navit/graphics/qt_qpainter
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-05 12:02:02 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-05 12:02:02 +0000
commit2e80a894d3b9d32b794c4c060a44f779a1076445 (patch)
tree708ed34134435a293416b705212db9a7f3d42171 /navit/graphics/qt_qpainter
parent6c0a6adf67b870866dffc75357b60db6db9f8742 (diff)
downloadnavit-2e80a894d3b9d32b794c4c060a44f779a1076445.tar.gz
Fix:graphics_qt_qpainter:Only use processEvents if available
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3861 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics/qt_qpainter')
-rw-r--r--navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
index 4c76a1add..e9e0b756b 100644
--- a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
+++ b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
@@ -979,8 +979,10 @@ static void draw_mode(struct graphics_priv *gr, enum draw_mode_num mode)
#endif
}
#endif
+#if QT_VERSION >= 0x040000
if (!gr->parent)
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers|QEventLoop::DeferredDeletion|QEventLoop::X11ExcludeTimers);
+#endif
}
#if QT_VERSION >= 0x040000
if (mode == draw_mode_end_lazy)