Skip to content

Commit

Permalink
Store canvas temporal range directly in canvas map settings, instead of
Browse files Browse the repository at this point in the history
a separate variable.
  • Loading branch information
nyalldawson committed Mar 6, 2020
1 parent e7ac0ee commit 326f583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions src/gui/qgsmapcanvas.h
Expand Up @@ -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;

Expand Down

0 comments on commit 326f583

Please sign in to comment.