From 23a9e48b75b9f462f5646f941a535643650b2b92 Mon Sep 17 00:00:00 2001 From: Jesse Qu Date: Fri, 3 Jul 2026 14:26:43 +0800 Subject: [PATCH] Adjust graphics items --- include/graphicsItem/graphicsPolygonItem.h | 2 ++ include/graphicsItem/graphicsRectItem.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/graphicsItem/graphicsPolygonItem.h b/include/graphicsItem/graphicsPolygonItem.h index a76f04e..2a0bee9 100644 --- a/include/graphicsItem/graphicsPolygonItem.h +++ b/include/graphicsItem/graphicsPolygonItem.h @@ -5,6 +5,8 @@ class GraphicPolygonItem : public GraphicsBaseItem { + Q_OBJECT + public: GraphicPolygonItem(QGraphicsItem *parent = 0); virtual ~GraphicPolygonItem(); diff --git a/include/graphicsItem/graphicsRectItem.h b/include/graphicsItem/graphicsRectItem.h index 0b0ee6f..54e9601 100644 --- a/include/graphicsItem/graphicsRectItem.h +++ b/include/graphicsItem/graphicsRectItem.h @@ -5,6 +5,8 @@ class GraphicsRectItem : public GraphicsBaseItem { + Q_OBJECT + public: GraphicsRectItem(const QRect &rect, bool isRound = false, QGraphicsItem *parent = 0); virtual ~GraphicsRectItem();