+ QNEPort* p = dynamic_cast< QNEPort* >( i );\r
+ if( p == NULL )\r
+ continue;\r
+\r
+ if( dynamic_cast< QNENamePort* >( i ) != NULL )\r
+ i->setPos( -this->m_Width / 2 + port->radius( ), y );\r
+ else if( dynamic_cast< QNETypePort* >( i ) != NULL )\r
+ {\r
+ i->setPos( -this->m_Width / 2 + port->radius( ), y );\r
+ y += h;\r
+ }\r
+ else if( dynamic_cast< QNEInputPort* >( i ) != NULL )\r
+ i->setPos( -this->m_Width / 2 - 2 * port->radius( ), y );\r
+ else if( dynamic_cast< QNEOutputPort* >( i ) != NULL )\r
+ i->setPos( this->m_Width / 2, y );\r
+\r
+ /* TODO\r
+ QNEPort* p = dynamic_cast< QNEPort* >( i );\r
+ if( p == NULL )\r
+ continue;\r
+\r
+ if( dynamic_cast< QNEOutputPort* >( p ) != NULL )\r
+ p->setPos( this->m_Width / 2 + port->radius( ), y );\r
+ else\r
+ p->setPos( -this->m_Width / 2 - port->radius( ), y );\r
+ */\r
+ y += h;\r