mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1018 Force update of display model for scheduled updates before taking snapshot
This commit is contained in:
parent
8ff4b3d4f9
commit
ebf5b01234
@ -212,9 +212,14 @@ private:
|
||||
|
||||
private slots:
|
||||
void slotWorkerProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
||||
void slotUpdateScheduledDisplayModels();
|
||||
|
||||
// Friend classes required to have access to slotUpdateScheduledDisplayModels
|
||||
// As snapshots are produced fast in sequence, the feature must have access to force redraw
|
||||
// of scheduled redraws
|
||||
friend class RimView;
|
||||
friend class RicExportMultipleSnapshotsFeature;
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimView> m_activeReservoirView;
|
||||
caf::PdmPointer<RimWellLogPlot> m_activeWellLogPlot;
|
||||
|
@ -260,6 +260,9 @@ QImage RimView::snapshotWindowContent()
|
||||
{
|
||||
if (m_viewer)
|
||||
{
|
||||
// Force update of scheduled display models before snapshotting
|
||||
RiaApplication::instance()->slotUpdateScheduledDisplayModels();
|
||||
|
||||
m_viewer->repaint();
|
||||
|
||||
return m_viewer->snapshotImage();
|
||||
|
Loading…
Reference in New Issue
Block a user