Skip to content
Permalink
Browse files

Minimum year possible in temporal controller should be 1

  • Loading branch information
github-actions authored and nyalldawson committed Jun 30, 2020
1 parent f5defcd commit 49883a61685f6f8ea6f7c72474157396a2d9d6f7
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 49883a6

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