Skip to content

Commit

Permalink
Minimum year possible in temporal controller should be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jun 30, 2020
1 parent f5defcd commit 49883a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 49883a6

Please sign in to comment.