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
#include <QObject>
#include "qmt/infrastructure/qmt_global.h"
#include <QObject>
namespace qmt {
class CustomRelation;
@@ -15,7 +16,6 @@ class Toolbar;
class QMT_EXPORT ConfigController : public QObject
{
Q_OBJECT
class ConfigControllerPrivate;
public:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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