diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-21 15:31:56 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-21 11:35:24 -0800 |
commit | ce7c3f8314ceedd82364ce441b73983ee62f3aaf (patch) | |
tree | 58d212a52ef48b630388dec5d76b3c892e74fc5b /qt-ui/profile/profilewidget2.cpp | |
parent | 8065374793908894b47cfd1c2bb0b9913d404bb4 (diff) | |
download | subsurface-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.cpp | 10 |
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(); } |