Skip to content
Permalink
Browse files

Store canvas temporal range directly in canvas map settings, instead of

a separate variable.
  • Loading branch information
nyalldawson committed Mar 5, 2020
1 parent e7ac0ee commit 326f58399e2c52f1c1f864e1d1342817495e7c19
Showing with 2 additions and 6 deletions.
  1. +2 −3 src/gui/qgsmapcanvas.cpp
  2. +0 −3 src/gui/qgsmapcanvas.h
@@ -733,14 +733,13 @@ void QgsMapCanvas::setTemporalRange( const QgsDateTimeRange &dateTimeRange )
if ( temporalRange() == dateTimeRange )
return;

mTemporalRangeObject.setTemporalRange( dateTimeRange );

mSettings.setTemporalRange( dateTimeRange );
emit temporalRangeChanged();
}

const QgsDateTimeRange &QgsMapCanvas::temporalRange() const
{
return mTemporalRangeObject.temporalRange();
return mSettings.temporalRange();
}

void QgsMapCanvas::mapUpdateTimeout()
@@ -1038,9 +1038,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! Timer that periodically fires while map rendering is in progress to update the visible map
QTimer mMapUpdateTimer;

//! Temporal range object
QgsTemporalRangeObject mTemporalRangeObject;

//! Job that takes care of map rendering in background
QgsMapRendererQImageJob *mJob = nullptr;

0 comments on commit 326f583

Please sign in to comment.
You can’t perform that action at this time.