mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#13813 Remove duplicated snapshotWindowContent overrides that replicate base class behavior
This commit is contained in:
@@ -536,22 +536,6 @@ void RimAbstractCorrelationPlot::deleteViewWidget()
|
||||
cleanupBeforeClose();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QImage RimAbstractCorrelationPlot::snapshotWindowContent()
|
||||
{
|
||||
QImage image;
|
||||
|
||||
if ( m_plotWidget )
|
||||
{
|
||||
QPixmap pix = m_plotWidget->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -98,7 +98,6 @@ protected:
|
||||
QWidget* viewWidget() override;
|
||||
void deleteViewWidget() override;
|
||||
void zoomAll() override {}
|
||||
QImage snapshotWindowContent() override;
|
||||
|
||||
// RimPlotWindow overrides
|
||||
QString description() const override;
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
|
||||
#include <QContextMenuEvent>
|
||||
#include <QFrame>
|
||||
#include <QImage>
|
||||
#include <QSettings>
|
||||
#include <QStringList>
|
||||
#include <QVBoxLayout>
|
||||
@@ -282,22 +281,6 @@ QString RimCorrelationReportPlot::description() const
|
||||
return createDescription();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QImage RimCorrelationReportPlot::snapshotWindowContent()
|
||||
{
|
||||
QImage image;
|
||||
|
||||
if ( m_viewWidget )
|
||||
{
|
||||
QPixmap pix = m_viewWidget->grab();
|
||||
image = pix.toImage();
|
||||
}
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -52,7 +52,6 @@ public:
|
||||
|
||||
QWidget* viewWidget() override;
|
||||
QString description() const override;
|
||||
QImage snapshotWindowContent() override;
|
||||
void zoomAll() override;
|
||||
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
|
||||
Reference in New Issue
Block a user