profile: remove redundant parameter in setPrintMode()

Since using separate profile-instances for print/export,
we never exit print mode. Therefore, the mode parameter
can be removed. This is a preparatory commit for passing
the printMode at construction time.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-28 20:46:49 +02:00 committed by Dirk Hohndel
parent db726862ae
commit 9f6e487790
8 changed files with 21 additions and 21 deletions

View file

@ -612,7 +612,7 @@ void PlannerWidgets::printDecoPlan()
auto profile = std::make_unique<ProfileWidget2>(DivePlannerPointsModel::instance(), 1.0, nullptr);
profile->setPlanState(&displayed_dive, 0);
profile->plotDive(&displayed_dive, 0, true, true);
profile->setPrintMode(true);
profile->setPrintMode();
profile->draw(&painter, QRect(0, 0, pixmap.width(), pixmap.height()));
QByteArray byteArray;