Index: trunk/FACT++/gui/BasicGlCamera.cc
===================================================================
--- trunk/FACT++/gui/BasicGlCamera.cc	(revision 19977)
+++ trunk/FACT++/gui/BasicGlCamera.cc	(revision 19978)
@@ -47,5 +47,7 @@
                           QGL::DepthBuffer),cParent)
     {
+#ifdef HAVE_QT4
         QGL::setPreferredPaintEngine(QPaintEngine::OpenGL);
+#endif
         fWhite = -1;
         fWhitePatch = -1;
Index: trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
===================================================================
--- trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 19977)
+++ trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 19978)
@@ -32,4 +32,8 @@
 #undef ACTUAL_NUM_PIXELS
 #define ACTUAL_NUM_PIXELS 1440
+
+#ifndef HAVE_QT4 // required with not qwt5-qt4 (assuming that this is the default for not Qt4)
+#define setMajPen setMajorPen
+#endif
 
 //bounding box for diplaying the impulse curve
