Added a user preference to change the Ride List sorting. Default should be ascending by date, as it has been. Disabling the "Sort ride list ascending" preference will sort the ride list descending by date.

Also, added margins to the widgets in the main window.
This commit is contained in:
Robert Carlsen
2009-01-05 01:47:37 +00:00
parent f8a94dc767
commit 8d2edd4c48
6 changed files with 36 additions and 5 deletions

View File

@@ -113,7 +113,8 @@ 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());
//If the user never switched pages, then make sure we have up to date data.
if (cyclistPage->getCurrentRange() == 0 || cyclistPage->getCurrentRange() == zones->getRangeSize() - 1)
{