Skip to content
Snippets Groups Projects
Commit ad8d7baa authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm comments on Q_OBJECT

parent 869e8a20
No related branches found
No related tags found
1 merge request!1466restore all Q_OBJECT macros removed in MR 1447, and add some more
...@@ -26,7 +26,7 @@ class SimulationResult; ...@@ -26,7 +26,7 @@ class SimulationResult;
//! The JobWorker class provides running the domain simulation in a thread. //! The JobWorker class provides running the domain simulation in a thread.
class JobWorker : public QObject { class JobWorker : public QObject {
Q_OBJECT // needed by qobject_cast Q_OBJECT
public : JobWorker(QString identifier, ISimulation* simulation); public : JobWorker(QString identifier, ISimulation* simulation);
~JobWorker(); ~JobWorker();
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
//! Placed either in corners on in the middle of the edge. //! Placed either in corners on in the middle of the edge.
class SizeHandleElement : public QGraphicsObject { class SizeHandleElement : public QGraphicsObject {
Q_OBJECT // needed by qobject_cast Q_OBJECT
public : int public : int
type() const override type() const override
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
//! SpinBox for DoubleProperties, supporting units. //! SpinBox for DoubleProperties, supporting units.
class DoubleSpinBox : public QDoubleSpinBox { class DoubleSpinBox : public QDoubleSpinBox {
Q_OBJECT // required by qobject_cast (called via FormLayouter::widgetAt) Q_OBJECT
public : public :
//! Create a DoubleSpinBox with the information found in a DoubleProperty. //! Create a DoubleSpinBox with the information found in a DoubleProperty.
//! //!
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <QAbstractSpinBox> #include <QAbstractSpinBox>
class ScientificSpinBox : public 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 Q_PROPERTY(double value MEMBER m_value READ value WRITE setValue NOTIFY valueChanged
USER true) public : ScientificSpinBox(QWidget* parent = nullptr); USER true) public : ScientificSpinBox(QWidget* parent = nullptr);
~ScientificSpinBox() override; ~ScientificSpinBox() override;
......
...@@ -26,7 +26,7 @@ class RealLimits; ...@@ -26,7 +26,7 @@ class RealLimits;
//! Base class for all custom variants editors. //! Base class for all custom variants editors.
class CustomEditor : public QWidget { class CustomEditor : public QWidget {
Q_OBJECT // needed by qobject_cast Q_OBJECT
public : explicit CustomEditor(QWidget* parent = nullptr) public : explicit CustomEditor(QWidget* parent = nullptr)
: QWidget(parent) : QWidget(parent)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment