summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-21 15:31:56 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-21 11:35:24 -0800
commitce7c3f8314ceedd82364ce441b73983ee62f3aaf (patch)
tree58d212a52ef48b630388dec5d76b3c892e74fc5b /qt-ui/profile/profilewidget2.cpp
parent8065374793908894b47cfd1c2bb0b9913d404bb4 (diff)
downloadsubsurface-ce7c3f8314ceedd82364ce441b73983ee62f3aaf.tar.gz
Add the tissues to the profile graph
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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();
}