]> Creatis software - cpPlugins.git/blobdiff - appli/cpPipelineEditor/QNEConnection.h
More on graph editor
[cpPlugins.git] / appli / cpPipelineEditor / QNEConnection.h
index 54cdf84115644539f82967c55a748a9d64ad3590..7e5a12e41a2a9415f8f6f8001e6ae05809e61556 100644 (file)
@@ -43,7 +43,7 @@ namespace PipelineEditor
     typedef QGraphicsPathItem Superclass;\r
 \r
   public:\r
-    enum { Type = QGraphicsItem::UserType + 2 };\r
+    enum { Type = QGraphicsItem::UserType + 5 };\r
 \r
     QNEConnection( QGraphicsItem* parent = 0, QGraphicsScene* scene = 0 );\r
     virtual ~QNEConnection( );\r
@@ -57,7 +57,8 @@ namespace PipelineEditor
     QNEPort* port1( ) const;\r
     QNEPort* port2( ) const;\r
 \r
-    int type( ) const { return Type; }\r
+    inline int type( ) const\r
+      { return( this->Type ); }\r
 \r
   private:\r
     QPointF m_Pos1;\r