: SUIT_ViewWindow( theDesktop )
{
myModel = theModel;
- myDumpImage = QImage();
}
/*!
myViewFrame->setVisualParameters( parameters );
}
-/*!
- \brief Grab the view window to the internal image.
-*/
-void Plot2d_ViewWindow::RefreshDumpImage()
-{
- QPixmap px = QPixmap::grabWindow( myViewFrame->winId() );
- myDumpImage = px.toImage();
-}
-
/*!
\brief Called when the scale mode for the horizontal axis is changed.
*/
*/
QImage Plot2d_ViewWindow::dumpView()
{
- if ( getToolBar()->underMouse() || myDumpImage.isNull() ) {
- QPixmap px = QPixmap::grabWindow( myViewFrame->winId() );
- return px.toImage();
- }
-
- return myDumpImage;
+ QPixmap px = QPixmap::grabWidget( myViewFrame );
+ return px.toImage();
}
/*!