Remove a few unnecessary Q_OBJECT

Change-Id: I4c84f264045797c70ec3022e3705f63341a1e7d9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2023-07-14 08:22:15 +02:00
parent 9567f82b75
commit 48ebffc539
12 changed files with 16 additions and 35 deletions

View File

@@ -3,9 +3,10 @@
#pragma once #pragma once
#include <QObject>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include <QObject>
namespace qmt { namespace qmt {
class CustomRelation; class CustomRelation;
@@ -15,7 +16,6 @@ class Toolbar;
class QMT_EXPORT ConfigController : public QObject class QMT_EXPORT ConfigController : public QObject
{ {
Q_OBJECT
class ConfigControllerPrivate; class ConfigControllerPrivate;
public: public:

View File

@@ -3,12 +3,12 @@
#pragma once #pragma once
#include <QObject>
#include "sourcepos.h" #include "sourcepos.h"
#include "qmt/infrastructure/exceptions.h" #include "qmt/infrastructure/exceptions.h"
#include <QObject>
namespace qmt { namespace qmt {
class ITextSource; class ITextSource;
@@ -29,7 +29,6 @@ private:
class QMT_EXPORT TextScanner : public QObject class QMT_EXPORT TextScanner : public QObject
{ {
Q_OBJECT
class TextScannerPrivate; class TextScannerPrivate;
public: public:

View File

@@ -13,8 +13,6 @@ namespace qmt {
class QMT_EXPORT NameController : public QObject class QMT_EXPORT NameController : public QObject
{ {
Q_OBJECT
private: private:
explicit NameController(QObject *parent = nullptr); explicit NameController(QObject *parent = nullptr);
~NameController() override; ~NameController() override;

View File

@@ -3,9 +3,10 @@
#pragma once #pragma once
#include <QObject>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include <QObject>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QUndoStack; class QUndoStack;
QT_END_NAMESPACE QT_END_NAMESPACE
@@ -16,8 +17,6 @@ class UndoCommand;
class QMT_EXPORT UndoController : public QObject class QMT_EXPORT UndoController : public QObject
{ {
Q_OBJECT
public: public:
explicit UndoController(QObject *parent = nullptr); explicit UndoController(QObject *parent = nullptr);
~UndoController() override; ~UndoController() override;

View File

@@ -3,11 +3,12 @@
#pragma once #pragma once
#include <QObject>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include "capabilities/latchable.h" #include "capabilities/latchable.h"
#include <QObject>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QGraphicsScene; class QGraphicsScene;
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
@@ -22,8 +23,6 @@ class AlignLineItem;
class QMT_EXPORT LatchController : public QObject class QMT_EXPORT LatchController : public QObject
{ {
Q_OBJECT
public: public:
explicit LatchController(QObject *parent = nullptr); explicit LatchController(QObject *parent = nullptr);
~LatchController() override; ~LatchController() override;
@@ -44,7 +43,6 @@ private:
void hideLatches(); void hideLatches();
void applyLatches(); void applyLatches();
private:
DiagramSceneModel *m_diagramSceneModel = nullptr; DiagramSceneModel *m_diagramSceneModel = nullptr;
AlignLineItem *m_horizontalAlignLine = nullptr; AlignLineItem *m_horizontalAlignLine = nullptr;
AlignLineItem *m_verticalAlignLine = nullptr; AlignLineItem *m_verticalAlignLine = nullptr;

View File

@@ -3,9 +3,9 @@
#pragma once #pragma once
#include <QSortFilterProxyModel>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include <QSortFilterProxyModel>
#include <QTimer> #include <QTimer>
namespace qmt { namespace qmt {
@@ -14,8 +14,6 @@ class TreeModel;
class QMT_EXPORT SortedTreeModel : public QSortFilterProxyModel class QMT_EXPORT SortedTreeModel : public QSortFilterProxyModel
{ {
Q_OBJECT
public: public:
explicit SortedTreeModel(QObject *parent = nullptr); explicit SortedTreeModel(QObject *parent = nullptr);
~SortedTreeModel() override; ~SortedTreeModel() override;

View File

@@ -3,9 +3,10 @@
#pragma once #pragma once
#include <QObject>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include <QObject>
namespace qmt { namespace qmt {
class TreeModel; class TreeModel;
@@ -16,8 +17,6 @@ class MSelection;
class QMT_EXPORT TreeModelManager : public QObject class QMT_EXPORT TreeModelManager : public QObject
{ {
Q_OBJECT
public: public:
explicit TreeModelManager(QObject *parent = nullptr); explicit TreeModelManager(QObject *parent = nullptr);
~TreeModelManager() override; ~TreeModelManager() override;

View File

@@ -3,11 +3,11 @@
#pragma once #pragma once
#include <QObject>
#include "qmt/infrastructure/qmt_global.h" #include "qmt/infrastructure/qmt_global.h"
#include <QObject>
#include <QScopedPointer> #include <QScopedPointer>
#include <functional> #include <functional>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
@@ -28,8 +28,6 @@ class StyleController;
class QMT_EXPORT PropertiesView : public QObject class QMT_EXPORT PropertiesView : public QObject
{ {
Q_OBJECT
public: public:
class MView; class MView;

View File

@@ -3,8 +3,6 @@
#pragma once #pragma once
#include <QObject>
#include "propertiesview.h" #include "propertiesview.h"
#include "qmt/model/mconstvisitor.h" #include "qmt/model/mconstvisitor.h"
@@ -14,6 +12,7 @@
#include "qmt/style/styleengine.h" #include "qmt/style/styleengine.h"
#include <QList> #include <QList>
#include <QObject>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QWidget; class QWidget;
@@ -36,8 +35,6 @@ class PaletteBox;
class QMT_EXPORT PropertiesView::MView : public QObject, public MConstVisitor, public DConstVisitor class QMT_EXPORT PropertiesView::MView : public QObject, public MConstVisitor, public DConstVisitor
{ {
Q_OBJECT
public: public:
explicit MView(PropertiesView *propertiesView); explicit MView(PropertiesView *propertiesView);
~MView() override; ~MView() override;

View File

@@ -3,11 +3,10 @@
#pragma once #pragma once
#include <QObject>
#include "stereotypeicon.h" #include "stereotypeicon.h"
#include <QMarginsF> #include <QMarginsF>
#include <QObject>
namespace qmt { namespace qmt {
@@ -17,7 +16,6 @@ class Style;
class QMT_EXPORT StereotypeController : public QObject class QMT_EXPORT StereotypeController : public QObject
{ {
Q_OBJECT
class StereotypeControllerPrivate; class StereotypeControllerPrivate;
public: public:

View File

@@ -3,11 +3,10 @@
#pragma once #pragma once
#include <QObject>
#include "styleengine.h" #include "styleengine.h"
#include "qmt/diagram/dobject.h" #include "qmt/diagram/dobject.h"
#include <QObject>
#include <QScopedPointer> #include <QScopedPointer>
namespace qmt { namespace qmt {
@@ -21,7 +20,6 @@ class DBoundary;
class QMT_EXPORT StyleController : public QObject class QMT_EXPORT StyleController : public QObject
{ {
Q_OBJECT
class Parameters; class Parameters;
public: public:

View File

@@ -85,7 +85,6 @@ private:
class ExamplesViewController : public QObject class ExamplesViewController : public QObject
{ {
Q_OBJECT
public: public:
explicit ExamplesViewController(ExampleSetModel *exampleSetModel, explicit ExamplesViewController(ExampleSetModel *exampleSetModel,
Core::SectionedGridView *view, Core::SectionedGridView *view,