]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
SVTK_View name corrected
authorouv <ouv@opencascade.com>
Wed, 17 Aug 2005 09:57:17 +0000 (09:57 +0000)
committerouv <ouv@opencascade.com>
Wed, 17 Aug 2005 09:57:17 +0000 (09:57 +0000)
src/SVTK/SVTK_ViewWindow.cxx

index d23fe6ddddaa8588fa48bcfe777c4ada0c5066df..368090079208960d891057ea7b150be81a997eca 100755 (executable)
@@ -53,7 +53,7 @@ SVTK_ViewWindow
   QSplitter* aSplitter = new QSplitter( Qt::Vertical, aCentralWidget );
 
   // Create an interactor.
-  myView = new SVTK_View( aSplitter, "TopView" );
+  myView = new SVTK_View( aSplitter, "SVTK_View" );
   /*
   SVTK_View* bottomView = new SVTK_View( aSplitter, "BottomView" );
   bottomView->getInteractor()->SetInteractorStyle( myInteractorStyle ); 
@@ -592,8 +592,7 @@ QImage
 SVTK_ViewWindow
 ::dumpView()
 {
-  QPixmap px = QPixmap::grabWindow( myView->winId() );
-  return px.convertToImage();
+  return myView->dumpView();
 }
 
 //----------------------------------------------------------------------------