From: asl Date: Mon, 12 Dec 2005 13:09:48 +0000 (+0000) Subject: Caption of SUPERVGraph view must be same as imported filename X-Git-Tag: T_3_1_0pre~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f7cfe8af18776ac71cb3f4a06add771eb6dd366;p=modules%2Fsuperv.git Caption of SUPERVGraph view must be same as imported filename --- diff --git a/src/SUPERVGUI/SUPERVGUI.cxx b/src/SUPERVGUI/SUPERVGUI.cxx index 9da02d6..35c1474 100644 --- a/src/SUPERVGUI/SUPERVGUI.cxx +++ b/src/SUPERVGUI/SUPERVGUI.cxx @@ -694,6 +694,9 @@ bool SUPERVGUI::createDataflow( const NEW_DF_MODE mode, bool theInitialDF ) { registerGraph( f, main ); main->resizeView( new QResizeEvent( aViewFrame->size(), aViewFrame->size() ) ); aViewFrame->show(); + QFileInfo inf( f ); + if( !f.isEmpty() ) + aViewFrame->setCaption( inf.fileName() ); } if ( !theInitialDF ) {