Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 088696f commit 6bbada4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/src/app/testqgsprojectproperties.cpp
Expand Up @@ -279,9 +279,12 @@ void TestQgsProjectProperties::testTimeSettings()
QgsDateTimeRange thirdRange = QgsDateTimeRange( QDateTime( QDate( 2019, 1, 1 ), QTime(), Qt::UTC ),
QDateTime( QDate( 2020, 2, 28 ), QTime(), Qt::UTC ) );

firstLayer->temporalProperties()->setTemporalRange( firstRange );
secondLayer->temporalProperties()->setTemporalRange( secondRange );
thirdLayer->temporalProperties()->setTemporalRange( thirdRange );
firstLayer->temporalProperties()->setIsActive( true );
firstLayer->temporalProperties()->setFixedTemporalRange( firstRange );
secondLayer->temporalProperties()->setIsActive( true );
secondLayer->temporalProperties()->setFixedTemporalRange( secondRange );
thirdLayer->temporalProperties()->setIsActive( true );
thirdLayer->temporalProperties()->setFixedTemporalRange( thirdRange );

QgsProject::instance()->addMapLayers( { firstLayer, secondLayer, thirdLayer } );

Expand Down

0 comments on commit 6bbada4

Please sign in to comment.