This patch by Tom Montgomer now uses the current date when importing a CSV file instead of defaulting to 2000.

Thanks Tom.
This commit is contained in:
Justin F. Knotzke
2009-03-25 23:21:47 +00:00
parent f328248582
commit 6cfccfc92f

View File

@@ -32,6 +32,12 @@ void DatePickerDialog::setupUi(QDialog *DatePickerDialog)
lblOccur = new QLabel("When did this ride occur?", this);
mainGrid->addWidget(lblOccur, 0,0);
dateTimeEdit = new QDateTimeEdit(this);
// preset dialog to today's date -thm
QDateTime *dt = new QDateTime;
date = dt->currentDateTime();
dateTimeEdit->setDateTime(date);
mainGrid->addWidget(dateTimeEdit,0,1);
lblBrowse = new QLabel("Choose a CSV file to upload", this);
mainGrid->addWidget(lblBrowse, 1,0);