Skip to content
Permalink
Browse files

Minimum year possible in temporal controller should be 1

Fixes #37485
  • Loading branch information
nyalldawson committed Jun 30, 2020
1 parent 5b85cb9 commit 2ed914ff67ab141151087e1bfd343f2347e82ab3
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgstemporalcontrollerwidget.cpp
@@ -36,6 +36,11 @@ QgsTemporalControllerWidget::QgsTemporalControllerWidget( QWidget *parent )

mNavigationObject = new QgsTemporalNavigationObject( this );

mStartDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );
mEndDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );
mFixedRangeStartDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );
mFixedRangeEndDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );

connect( mForwardButton, &QPushButton::clicked, this, &QgsTemporalControllerWidget::togglePlayForward );
connect( mBackButton, &QPushButton::clicked, this, &QgsTemporalControllerWidget::togglePlayBackward );
connect( mStopButton, &QPushButton::clicked, this, &QgsTemporalControllerWidget::togglePause );

0 comments on commit 2ed914f

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