Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 088696f commit 6bbada4b5c29b5e6117d8783c0595d48fcd117fe
Showing with 6 additions and 3 deletions.
  1. +6 −3 tests/src/app/testqgsprojectproperties.cpp
@@ -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 } );

0 comments on commit 6bbada4

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