Index: trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
===================================================================
--- trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 20005)
+++ trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 20006)
@@ -16,4 +16,5 @@
 #include <QFileDialog>
 #include <QMouseEvent>
+#include <QButtonGroup> // Required in Qt5/Mint
 
 #include <qwt_symbol.h>
@@ -33,5 +34,5 @@
 #define ACTUAL_NUM_PIXELS 1440
 
-#ifndef HAVE_QT4 // required with not qwt5-qt4 (assuming that this is the default for not Qt4)
+#if QWT_VERSION>=0x060100
 #define setMajPen setMajorPen
 #endif
