X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpBaseQtApplication%2FCanvas.cxx;h=85e7bfb1a9bf7bc592bdb0dd947b9a494836fc3e;hb=db0a767418f78b371c1e4fb0db00e6b75df74ff3;hp=c55141f17b1b35c40a545553c73e6b109096b371;hpb=49d2d7db538d60008b9a5701ea8f26bb19997a82;p=cpPlugins.git diff --git a/lib/cpBaseQtApplication/Canvas.cxx b/lib/cpBaseQtApplication/Canvas.cxx index c55141f..85e7bfb 100644 --- a/lib/cpBaseQtApplication/Canvas.cxx +++ b/lib/cpBaseQtApplication/Canvas.cxx @@ -91,44 +91,6 @@ keyPressEvent( QKeyEvent* event ) default: break; } // hctiws - /* TODO - if( event->key( ) == del_key ) - { - auto _items = this->items( ); - auto i = _items.begin( ); - while( i != _items.end( ) ) - { - if( ( *i )->isSelected( ) ) - { - Block* b = dynamic_cast< Block* >( *i ); - Connection* c = dynamic_cast< Connection* >( *i ); - if( b != NULL ) - { - if( this->m_Editor->deleteFilter( b->namePort( ).toStdString( ) ) ) - delete b; - } - else if( c != NULL ) - { - if( - this->m_Editor->deleteConnection( - c->port1( )->block( )->namePort( ).toStdString( ), - c->port2( )->block( )->namePort( ).toStdString( ), - c->port1( )->name( ).toStdString( ), - c->port2( )->name( ).toStdString( ) - ) - ) - delete c; - - } // fi - i = _items.end( ); - } - else - i++; - - } // elihw - - } // fi - */ } // -------------------------------------------------------------------------