diff --git a/GUI/View/PropertyEditor/GroupInfoBox.cpp b/GUI/View/PropertyEditor/GroupInfoBox.cpp
index 703077113652e0f1a77c1b1a7a4340c561fa4efa..96f929eaf3c3fd38c2565626efbd23f88537304e 100644
--- a/GUI/View/PropertyEditor/GroupInfoBox.cpp
+++ b/GUI/View/PropertyEditor/GroupInfoBox.cpp
@@ -13,7 +13,6 @@
 //  ************************************************************************************************
 
 #include "GUI/View/PropertyEditor/GroupInfoBox.h"
-#include "GUI/Util/OSInfo.h"
 #include <QApplication>
 #include <QMouseEvent>
 #include <QPainter>
@@ -92,9 +91,11 @@ void GroupInfoBox::paintEvent(QPaintEvent*)
     m_yImage = 0;
 
     // draw groupbox
-    int shift(1);
-    if (GUI::Util::OS::HostOsInfo::isLinuxHost())
-        shift = 3;
+#if defined(Q_OS_LINUX)
+    const int shift = 3;
+#else
+    const int shift = 1;
+#endif
 
     paint.drawItemPixmap(option.rect.adjusted(0, shift, 0, 0), Qt::AlignTop | Qt::AlignRight,
                          QPixmap(":/images/magnifier.png"));