Navigation Menu

Skip to content

Commit

Permalink
Fix reset values on spin boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 13, 2020
1 parent 9063b37 commit 1272445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -51,6 +51,8 @@ QgsTemporalControllerWidget::QgsTemporalControllerWidget( QWidget *parent )
connect( mTimeStepsComboBox, qgis::overload<int>::of( &QComboBox::currentIndexChanged ), this, &QgsTemporalControllerWidget::updateFrameDuration );
connect( mSlider, &QSlider::valueChanged, this, &QgsTemporalControllerWidget::timeSlider_valueChanged );

mSpinBox->setClearValue( 1 );

connect( mNavigationObject, &QgsTemporalNavigationObject::updateTemporalRange, this, &QgsTemporalControllerWidget::updateSlider );

connect( mSettings, &QPushButton::clicked, this, &QgsTemporalControllerWidget::settings_clicked );
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgstemporalmapsettingswidget.cpp
Expand Up @@ -26,6 +26,8 @@ QgsTemporalMapSettingsWidget::QgsTemporalMapSettingsWidget( QWidget *parent )
setupUi( this );
setPanelTitle( tr( "Temporal Settings" ) );

mFrameSpinBox->setClearValue( 1 );

connect( mFrameSpinBox, qgis::overload<double>::of( &QDoubleSpinBox::valueChanged ), this, &QgsTemporalMapSettingsWidget::frameRateChanged );
}

Expand Down

0 comments on commit 1272445

Please sign in to comment.