X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPipelineEditor%2FBlock.cxx;h=bce1197d8f6bb2ae2b34fb8f0447892abf89cb04;hb=273699a71c538630c162de031f0c95014319311d;hp=f27a7c8878a2ed74200e64abfa3c29a027f2678a;hpb=19a9e1774044cc32c415ad38695800c1d169820d;p=cpPlugins.git diff --git a/lib/cpPipelineEditor/Block.cxx b/lib/cpPipelineEditor/Block.cxx index f27a7c8..bce1197 100644 --- a/lib/cpPipelineEditor/Block.cxx +++ b/lib/cpPipelineEditor/Block.cxx @@ -41,14 +41,12 @@ Block( TFilter* filter, QGraphicsItem* parent, QGraphicsScene* scene ) this->_setTypePort( this->m_Filter->GetClassName( ) ); // Add input ports - std::set< std::string > inputs; - this->m_Filter->GetInputsNames( inputs ); + auto inputs = this->m_Filter->GetInputsNames( ); for( auto iIt = inputs.begin( ); iIt != inputs.end( ); ++iIt ) this->addInputPort( iIt->c_str( ) ); // Add output ports - std::set< std::string > outputs; - this->m_Filter->GetOutputsNames( outputs ); + auto outputs = this->m_Filter->GetOutputsNames( ); for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt ) this->addOutputPort( oIt->c_str( ) ); } @@ -211,10 +209,13 @@ itemChange( GraphicsItemChange change, const QVariant& value ) void cpPipelineEditor::Block:: _setTypePort( const QString& txt ) { - if( this->m_TypePort == NULL ) - this->m_TypePort = new TypePort( this ); - this->m_TypePort->setName( txt ); - this->_configPort( this->m_TypePort ); + /* TODO + if( this->m_TypePort == NULL ) + this->m_TypePort = new TypePort( this ); + this->m_TypePort->setName( txt ); + this->_configPort( this->m_TypePort ); + */ + this->setToolTip( txt ); } // -------------------------------------------------------------------------