summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 46856ba76..045e7ee54 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -374,6 +374,16 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
diveComputerText->setText(currentdc->model);
diveComputerText->animateMoveTo(1 , sceneRect().height());
+ qDeleteAll(allTissues);
+ for(int i = 0; i < 16; i++){
+ DiveCalculatedCeiling *tissueItem = new DiveCalculatedCeiling();
+ tissueItem->setHorizontalAxis(timeAxis);
+ tissueItem->setVerticalAxis(profileYAxis);
+ tissueItem->setModel(dataModel);
+ tissueItem->setVerticalDataColumn(DivePlotDataModel::TISSUE_1 + i);
+ tissueItem->setHorizontalDataColumn(DivePlotDataModel::TIME);
+ scene()->addItem(tissueItem);
+ }
emit startProfileState();
}