diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-23 17:59:14 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-23 21:11:15 -0800 |
commit | 1cae362c16ae94a98f4d00e19e1ffb591ecc5761 (patch) | |
tree | 09ac2bfc90a7a91d998d7a6cff03f3f11c8846d4 /qt-ui/profile/profilewidget2.cpp | |
parent | caa45a15396a737ecbef1161e302735b148cc236 (diff) | |
download | subsurface-1cae362c16ae94a98f4d00e19e1ffb591ecc5761.tar.gz |
Added the code for the PHE gas pressure.
Using the PartialPressureGasItem the addition of a new partial plot
is very easy.
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 6041bac89..8397dcb41 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -180,6 +180,16 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : pn2GasItem->setThreshouldSettingsKey("pn2threshold"); scene()->addItem(pn2GasItem); + pheGasItem = new PartialPressureGasItem(); + pheGasItem->setHorizontalAxis(timeAxis); + pheGasItem->setVerticalAxis(gasYAxis); + pheGasItem->setModel(dataModel); + pheGasItem->setVerticalDataColumn(DivePlotDataModel::PHE); + pheGasItem->setHorizontalDataColumn(DivePlotDataModel::TIME); + pheGasItem->setZValue(0); + pheGasItem->setThreshouldSettingsKey("phethreshold"); + scene()->addItem(pheGasItem); + background->setFlag(QGraphicsItem::ItemIgnoresTransformations); //enum State{ EMPTY, PROFILE, EDIT, ADD, PLAN, INVALID }; |