]> Creatis software - cpPlugins.git/blobdiff - lib/cpPipelineEditor/Block.cxx
...
[cpPlugins.git] / lib / cpPipelineEditor / Block.cxx
index f27a7c8878a2ed74200e64abfa3c29a027f2678a..bce1197d8f6bb2ae2b34fb8f0447892abf89cb04 100644 (file)
@@ -41,14 +41,12 @@ Block( TFilter* filter, QGraphicsItem* parent, QGraphicsScene* scene )
   this->_setTypePort( this->m_Filter->GetClassName( ) );\r
 \r
   // Add input ports\r
-  std::set< std::string > inputs;\r
-  this->m_Filter->GetInputsNames( inputs );\r
+  auto inputs = this->m_Filter->GetInputsNames( );\r
   for( auto iIt = inputs.begin( ); iIt != inputs.end( ); ++iIt )\r
     this->addInputPort( iIt->c_str( ) );\r
 \r
   // Add output ports\r
-  std::set< std::string > outputs;\r
-  this->m_Filter->GetOutputsNames( outputs );\r
+  auto outputs = this->m_Filter->GetOutputsNames( );\r
   for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt )\r
     this->addOutputPort( oIt->c_str( ) );\r
 }\r
@@ -211,10 +209,13 @@ itemChange( GraphicsItemChange change, const QVariant& value )
 void cpPipelineEditor::Block::\r
 _setTypePort( const QString& txt )\r
 {\r
-  if( this->m_TypePort == NULL )\r
-    this->m_TypePort = new TypePort( this );\r
-  this->m_TypePort->setName( txt );\r
-  this->_configPort( this->m_TypePort );\r
+  /* TODO\r
+     if( this->m_TypePort == NULL )\r
+     this->m_TypePort = new TypePort( this );\r
+     this->m_TypePort->setName( txt );\r
+     this->_configPort( this->m_TypePort );\r
+  */\r
+  this->setToolTip( txt );\r
 }\r
 \r
 // -------------------------------------------------------------------------\r