[qet] [2430] diagramimageitem: make good Type, and add dev doc |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2430
Author: blacksun
Date: 2013-08-16 15:57:22 +0200 (Fri, 16 Aug 2013)
Log Message:
-----------
diagramimageitem: make good Type, and add dev doc
Modified Paths:
--------------
branches/0.4/sources/diagramimageitem.h
Added Paths:
-----------
branches/0.4/docs/dev/
branches/0.4/docs/dev/subclass_type_of_QGraphicItem
Added: branches/0.4/docs/dev/subclass_type_of_QGraphicItem
===================================================================
--- branches/0.4/docs/dev/subclass_type_of_QGraphicItem (rev 0)
+++ branches/0.4/docs/dev/subclass_type_of_QGraphicItem 2013-08-16 13:57:22 UTC (rev 2430)
@@ -0,0 +1,9 @@
+ Type = UserType + ???
+Element + 1000
+Conductor + 1001
+Terminal + 1002
+ElementTextItem + 1003
+DiagramTextItem + 1004
+IndependentTextItem + 1005
+ConductorTextItem + 1006
+DiagramImageItem + 1007
Modified: branches/0.4/sources/diagramimageitem.h
===================================================================
--- branches/0.4/sources/diagramimageitem.h 2013-08-15 21:15:43 UTC (rev 2429)
+++ branches/0.4/sources/diagramimageitem.h 2013-08-16 13:57:22 UTC (rev 2430)
@@ -24,7 +24,7 @@
diagram.
@see QGraphicsItem::GraphicsItemFlags
*/
-class DiagramImageItem : public QObject, QGraphicsPixmapItem {
+class DiagramImageItem : public QObject, public QGraphicsPixmapItem {
Q_OBJECT
// constructors, destructor
public:
@@ -34,7 +34,7 @@
// attributes
public:
- enum { Type = UserType + 1004 };
+ enum { Type = UserType + 1007 };
// methods
public: