diff --git a/dev_doc/enum_type_of_QGraphicsItem b/dev_doc/enum_type_of_QGraphicsItem index 7ab49a2a0..068b37d70 100644 --- a/dev_doc/enum_type_of_QGraphicsItem +++ b/dev_doc/enum_type_of_QGraphicsItem @@ -1,16 +1,16 @@ Type = UserType + ??? ###DIAGRAM EDITOR### -Element + 1000 -Conductor + 1001 -Terminal + 1002 -ElementTextItem + 1003 -DiagramTextItem + 1004 +Element + 1000 +Conductor + 1001 +Terminal + 1002 +ElementTextItem + 1003 +DiagramTextItem + 1004 IndependentTextItem + 1005 -ConductorTextItem + 1006 -DiagramImageItem + 1007 -QetShapItem + 1008 -crossRefItem + 1009 -DynamiqueElementTextItem + 1010 +ConductorTextItem + 1006 +DiagramImageItem + 1007 +QetShapItem + 1008 +crossRefItem + 1009 +DynamiqueElementTextItem + 1010 ElementPrimitiveDecorator + 2200 ###ELEMENT EDITOR### @@ -25,4 +25,8 @@ part rectangle + 1109 part dynamic text field + 1110 ###QetGraphicsHandlerItem### -QetGraphicsHandlerItem = 1200 +QetGraphicsHandlerItem + 1200 + +###VIEW ITEMS### +QetGraphicsTableItem + 1300 +QetGraphicsHeaderItem + 1301 diff --git a/sources/qetgraphicsitem/ViewItem/qetgraphicsheaderitem.h b/sources/qetgraphicsitem/ViewItem/qetgraphicsheaderitem.h index 230960939..9e03a91ad 100644 --- a/sources/qetgraphicsitem/ViewItem/qetgraphicsheaderitem.h +++ b/sources/qetgraphicsitem/ViewItem/qetgraphicsheaderitem.h @@ -31,6 +31,9 @@ class QetGraphicsHeaderItem : public QGraphicsObject public: QetGraphicsHeaderItem(QGraphicsItem *parent = nullptr); + enum { Type = UserType + 1301 }; + int type() const override { return Type; } + void setModel(QAbstractItemModel *model); QAbstractItemModel *model() const; void reset(); diff --git a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.h b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.h index 462a596b4..8fe6a9069 100644 --- a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.h +++ b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.h @@ -33,6 +33,9 @@ class QetGraphicsTableItem : public QetGraphicsItem QetGraphicsTableItem(QGraphicsItem *parent= nullptr); virtual ~QetGraphicsTableItem() override; + enum { Type = UserType + 1300 }; + int type() const override { return Type; } + void setModel(QAbstractItemModel *model); QAbstractItemModel *model() const; void reset();