Skip to content

Commit

Permalink
Change Body&HRV date entry format to match the list
Browse files Browse the repository at this point in the history
For consistency, lets use the same format in the form,
it can be changed at translation time.
  • Loading branch information
amtriathlon committed Jul 30, 2020
1 parent e2c6f2e commit 9a62573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gui/Pages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ RiderPhysPage::RiderPhysPage(QWidget *parent, Context *context) : QWidget(parent
dateTimeEdit = new QDateTimeEdit;
dateTimeEdit->setDateTime(QDateTime::currentDateTime());
dateTimeEdit->setCalendarPopup(true);
dateTimeEdit->setDisplayFormat(tr("MMM d, yyyy - hh:mm:ss"));

QString weighttext = context->athlete->measures->getFieldNames(Measures::Body).at(BodyMeasure::WeightKg);
weightlabel = new QLabel(weighttext);
Expand Down Expand Up @@ -1421,6 +1422,7 @@ HrvPage::HrvPage(QWidget *parent, Context *context) : QWidget(parent), context(c
dateTimeEdit = new QDateTimeEdit;
dateTimeEdit->setDateTime(QDateTime::currentDateTime());
dateTimeEdit->setCalendarPopup(true);
dateTimeEdit->setDisplayFormat(tr("MMM d, yyyy - hh:mm:ss"));

QString rmssdtext = context->athlete->measures->getFieldNames(Measures::Hrv).at(HrvMeasure::RMSSD);
rmssdlabel = new QLabel(rmssdtext);
Expand Down

0 comments on commit 9a62573

Please sign in to comment.