mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: send plan in calculatedPlanNotes
Thus, the MainWindow doesn't have to extract the plan from displayed_dive. This is a tiny step in an attempt to detangle the interfaces. The bigger goal will be to make displayed_dive local to the planner. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f123972dbf
commit
62cbf26cc8
4 changed files with 6 additions and 6 deletions
|
@ -799,9 +799,9 @@ void MainWindow::planCreated()
|
|||
diveList->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::setPlanNotes()
|
||||
void MainWindow::setPlanNotes(QString plan)
|
||||
{
|
||||
plannerDetails->divePlanOutput()->setHtml(displayed_dive.notes);
|
||||
plannerDetails->divePlanOutput()->setHtml(plan);
|
||||
}
|
||||
|
||||
void MainWindow::printPlan()
|
||||
|
|
|
@ -165,7 +165,7 @@ slots:
|
|||
void planCanceled();
|
||||
void planCreated();
|
||||
void setEnabledToolbar(bool arg1);
|
||||
void setPlanNotes();
|
||||
void setPlanNotes(QString plan);
|
||||
// Some shortcuts like "change DC" or "copy/paste dive components"
|
||||
// should only be enabled when the profile's visible.
|
||||
void disableShortcuts(bool disablePaste = true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue