Skip to content
Permalink
Browse files

Fix reset values on spin boxes

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 9063b37 commit 1272445fdd3b3804ae61f5e971279e9c72bcc714
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/gui/qgstemporalcontrollerwidget.cpp
  2. +2 −0 src/gui/qgstemporalmapsettingswidget.cpp
@@ -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 );
@@ -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 );
}

0 comments on commit 1272445

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