#2331 Moved redraw scheduling and completion type recalc out of RiaApplication

This commit is contained in:
Jacob Støren
2018-01-12 11:31:01 +01:00
parent 591b72901f
commit 4b26354b30
12 changed files with 383 additions and 188 deletions

View File

@@ -21,6 +21,7 @@
#include "RiaApplication.h"
#include "RiaPreferences.h"
#include "RiaViewRedrawScheduler.h"
#include "Rim3dOverlayInfoConfig.h"
#include "RimCellRangeFilterCollection.h"
@@ -317,7 +318,7 @@ QImage Rim3dView::snapshotWindowContent()
if (m_viewer)
{
// Force update of scheduled display models before snapshotting
RiaApplication::instance()->slotUpdateScheduledDisplayModels();
RiaViewRedrawScheduler::instance()->slotUpdateScheduledDisplayModels();
m_viewer->repaint();
@@ -332,7 +333,7 @@ QImage Rim3dView::snapshotWindowContent()
//--------------------------------------------------------------------------------------------------
void Rim3dView::scheduleCreateDisplayModelAndRedraw()
{
RiaApplication::instance()->scheduleDisplayModelUpdateAndRedraw(this);
RiaViewRedrawScheduler::instance()->scheduleDisplayModelUpdateAndRedraw(this);
if (this->isMasterView())
{
RimViewLinker* viewLinker = this->assosiatedViewLinker();