Berend De SchouwerI made it possible to set the default cranklength.

I made it a combo box to avoid having to take care of invalid inputs.
This commit is contained in:
Justin F. Knotzke
2009-06-21 14:04:37 +00:00
parent 12db84372f
commit 02dce7245b
6 changed files with 75 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ void ConfigDialog::save_Clicked()
QSettings settings(GC_SETTINGS_CO, GC_SETTINGS_APP);
settings.setValue(GC_UNIT, configPage->unitCombo->currentText());
settings.setValue(GC_ALLRIDES_ASCENDING, configPage->allRidesAscending->checkState());
settings.setValue(GC_CRANKLENGTH, configPage->crankLengthCombo->currentText());
//If the user never switched pages, then make sure we have up to date data.
if (cyclistPage->getCurrentRange() == 0 || cyclistPage->getCurrentRange() == zones->getRangeSize() - 1)