From ad8d7baa960b1312f61dd4cf261362093121e30e Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Mon, 13 Mar 2023 17:03:25 +0100
Subject: [PATCH] rm comments on Q_OBJECT

---
 GUI/Support/Data/JobWorker.h            | 2 +-
 GUI/View/Mask/SizeHandleElement.h       | 2 +-
 GUI/View/Numeric/DoubleSpinBox.h        | 2 +-
 GUI/View/Numeric/ScientificSpinBox.h    | 2 +-
 GUI/View/PropertyEditor/CustomEditors.h | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/GUI/Support/Data/JobWorker.h b/GUI/Support/Data/JobWorker.h
index 83fa1ada62b..77eafb8ed5c 100644
--- a/GUI/Support/Data/JobWorker.h
+++ b/GUI/Support/Data/JobWorker.h
@@ -26,7 +26,7 @@ class SimulationResult;
 //! The JobWorker class provides running the domain simulation in a thread.
 
 class JobWorker : public QObject {
-    Q_OBJECT // needed by qobject_cast
+    Q_OBJECT
         public : JobWorker(QString identifier, ISimulation* simulation);
     ~JobWorker();
 
diff --git a/GUI/View/Mask/SizeHandleElement.h b/GUI/View/Mask/SizeHandleElement.h
index b99fb7125c6..57846491876 100644
--- a/GUI/View/Mask/SizeHandleElement.h
+++ b/GUI/View/Mask/SizeHandleElement.h
@@ -24,7 +24,7 @@
 //! Placed either in corners on in the middle of the edge.
 
 class SizeHandleElement : public QGraphicsObject {
-    Q_OBJECT // needed by qobject_cast
+    Q_OBJECT
 
         public : int
                  type() const override
diff --git a/GUI/View/Numeric/DoubleSpinBox.h b/GUI/View/Numeric/DoubleSpinBox.h
index 87df628dbab..3d4e0e9ab87 100644
--- a/GUI/View/Numeric/DoubleSpinBox.h
+++ b/GUI/View/Numeric/DoubleSpinBox.h
@@ -19,7 +19,7 @@
 
 //! SpinBox for DoubleProperties, supporting units.
 class DoubleSpinBox : public QDoubleSpinBox {
-    Q_OBJECT // required by qobject_cast (called via FormLayouter::widgetAt)
+    Q_OBJECT
         public :
         //! Create a DoubleSpinBox with the information found in a DoubleProperty.
         //!
diff --git a/GUI/View/Numeric/ScientificSpinBox.h b/GUI/View/Numeric/ScientificSpinBox.h
index 3c3a83d3c3a..6fe6bbb5778 100644
--- a/GUI/View/Numeric/ScientificSpinBox.h
+++ b/GUI/View/Numeric/ScientificSpinBox.h
@@ -18,7 +18,7 @@
 #include <QAbstractSpinBox>
 
 class ScientificSpinBox : public QAbstractSpinBox {
-    Q_OBJECT // needed by qobject_cast
+    Q_OBJECT
     Q_PROPERTY(double value MEMBER m_value READ value WRITE setValue NOTIFY valueChanged
                    USER true) public : ScientificSpinBox(QWidget* parent = nullptr);
     ~ScientificSpinBox() override;
diff --git a/GUI/View/PropertyEditor/CustomEditors.h b/GUI/View/PropertyEditor/CustomEditors.h
index 79fd91f708c..4cf314cb9c3 100644
--- a/GUI/View/PropertyEditor/CustomEditors.h
+++ b/GUI/View/PropertyEditor/CustomEditors.h
@@ -26,7 +26,7 @@ class RealLimits;
 //! Base class for all custom variants editors.
 
 class CustomEditor : public QWidget {
-    Q_OBJECT // needed by qobject_cast
+    Q_OBJECT
         public : explicit CustomEditor(QWidget* parent = nullptr)
         : QWidget(parent)
     {
-- 
GitLab