\r
// -------------------------------------------------------------------------\r
PipelineEditor::QNEBlock::\r
-QNEBlock( QGraphicsItem* parent, QGraphicsScene* scene )\r
+QNEBlock( TFilter* filter, QGraphicsItem* parent, QGraphicsScene* scene )\r
: Superclass( parent, scene ),\r
m_HorzMargin( 20 ),\r
m_VertMargin( 5 ),\r
m_NamePort( NULL ),\r
- m_TypePort( NULL )\r
+ m_TypePort( NULL ),\r
+ m_Filter( filter )\r
{\r
QPainterPath p;\r
p.addRoundedRect( -50, -15, 100, 30, 5, 5 );\r
if( this->m_NamePort == NULL )\r
this->m_NamePort = new QNENamePort( this );\r
this->m_NamePort->setName( txt );\r
+ this->m_Filter->SetName( txt.toStdString( ) );\r
this->_configPort( this->m_NamePort );\r
}\r
\r
PipelineEditor::QNEBlock* PipelineEditor::QNEBlock::\r
clone( )\r
{\r
- QNEBlock* b = new QNEBlock( 0, this->scene( ) );\r
+ QNEBlock* b = new QNEBlock( this->m_Filter, 0, this->scene( ) );\r
foreach( QGraphicsItem* i, this->childItems( ) )\r
{\r
QNENamePort* np = dynamic_cast< QNENamePort* >( i );\r