From 4375960a9ccfe31199529020dd67361704f3789f Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Mon, 10 Jan 2022 13:37:37 +0100
Subject: [PATCH] spell out if Linux

---
 GUI/View/PropertyEditor/GroupInfoBox.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/GUI/View/PropertyEditor/GroupInfoBox.cpp b/GUI/View/PropertyEditor/GroupInfoBox.cpp
index 70307711365..96f929eaf3c 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"));
-- 
GitLab