mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #4719 from OPM/qt5-use-grab
#4718 Qt5 : Use grab() instead of grabWidget()
This commit is contained in:
commit
679ce3a222
@ -126,7 +126,8 @@ void RicGridStatisticsDialog::updateFromRimView( RimGridView* rimView )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QImage RicGridStatisticsDialog::screenShotImage()
|
||||
{
|
||||
QPixmap shot = QPixmap::grabWidget( m_mainViewWidget, m_mainViewWidget->rect() );
|
||||
QPixmap shot = m_mainViewWidget->grab();
|
||||
|
||||
return shot.toImage();
|
||||
}
|
||||
|
||||
|
@ -604,7 +604,7 @@ QImage RimFlowCharacteristicsPlot::snapshotWindowContent()
|
||||
|
||||
if ( m_flowCharPlotWidget )
|
||||
{
|
||||
QPixmap pix = QPixmap::grabWidget( m_flowCharPlotWidget );
|
||||
QPixmap pix = m_flowCharPlotWidget->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
|
@ -782,7 +782,7 @@ QImage RimWellAllocationPlot::snapshotWindowContent()
|
||||
|
||||
if ( m_wellAllocationPlotWidget )
|
||||
{
|
||||
QPixmap pix = QPixmap::grabWidget( m_wellAllocationPlotWidget );
|
||||
QPixmap pix = m_wellAllocationPlotWidget->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ QImage RimGridCrossPlot::snapshotWindowContent()
|
||||
|
||||
if ( m_qwtPlot )
|
||||
{
|
||||
QPixmap pix = QPixmap::grabWidget( m_qwtPlot );
|
||||
QPixmap pix = m_qwtPlot->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
|
@ -284,7 +284,7 @@ QImage RimWellLogPlot::snapshotWindowContent()
|
||||
|
||||
if ( m_viewer )
|
||||
{
|
||||
QPixmap pix = QPixmap::grabWidget( m_viewer );
|
||||
QPixmap pix = m_viewer->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
|
@ -1321,7 +1321,7 @@ QImage RimSummaryPlot::snapshotWindowContent()
|
||||
|
||||
if ( m_qwtPlot )
|
||||
{
|
||||
QPixmap pix = QPixmap::grabWidget( m_qwtPlot );
|
||||
QPixmap pix = m_qwtPlot->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user