Added CopyViewToClipboard feature

This commit is contained in:
Magne Sjaastad
2016-06-27 21:01:17 +02:00
parent 2e0553d99c
commit 0680e830b4
11 changed files with 202 additions and 3 deletions

View File

@@ -181,6 +181,22 @@ caf::PdmFieldHandle* RimWellLogPlot::objectToggleField()
return &m_showWindow;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QImage RimWellLogPlot::snapshotWindowContent()
{
QImage image;
if (m_viewer)
{
QPixmap pix = QPixmap::grabWidget(m_viewer);
image = pix.toImage();
}
return image;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------