Fix:graphics_qt_qpainter:Don't use setBackgroundMode if not available
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 13 Jul 2010 05:54:16 +0000 (05:54 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 13 Jul 2010 05:54:16 +0000 (05:54 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3493 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp

index 6211963..46669e7 100644 (file)
@@ -304,8 +304,10 @@ RenderArea::RenderArea(struct graphics_priv *priv, QT_QPAINTER_RENDERAREA_PARENT
        timer_type=g_hash_table_new(NULL, NULL);
        timer_callback=g_hash_table_new(NULL, NULL);
        watches=g_hash_table_new(NULL, NULL);
+#ifndef QT_QPAINTER_NO_WIDGET
        setBackgroundMode(NoBackground);
 #endif
+#endif
 }
 
 //##############################################################################################################