cleanup: make a few DivePlannerModel functions private

It simplifies reasoning about control flow a lot if it is known
that functions can't be invoked from a different part of the code
base.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-19 21:20:01 +01:00 committed by Dirk Hohndel
parent 98594c18d1
commit e79ac9c7ed
2 changed files with 5 additions and 5 deletions

View file

@ -732,7 +732,7 @@ void DivePlannerPointsModel::setStartDate(const QDate &date)
void DivePlannerPointsModel::setStartTime(const QTime &t)
{
startTime.setTime(t);
diveplan.when = dateTimeToTimestamp(startTime);
diveplan.when = dateTimeToTimestamp(startTime);
displayed_dive.when = diveplan.when;
emitDataChanged();
}