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 8397dcb41..a39dbadd7 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -190,6 +190,16 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
pheGasItem->setThreshouldSettingsKey("phethreshold");
scene()->addItem(pheGasItem);
+ pheGasItem = new PartialPressureGasItem();
+ pheGasItem->setHorizontalAxis(timeAxis);
+ pheGasItem->setVerticalAxis(gasYAxis);
+ pheGasItem->setModel(dataModel);
+ pheGasItem->setVerticalDataColumn(DivePlotDataModel::PO2);
+ pheGasItem->setHorizontalDataColumn(DivePlotDataModel::TIME);
+ pheGasItem->setZValue(0);
+ pheGasItem->setThreshouldSettingsKey("po2threshold");
+ scene()->addItem(pheGasItem);
+
background->setFlag(QGraphicsItem::ItemIgnoresTransformations);
//enum State{ EMPTY, PROFILE, EDIT, ADD, PLAN, INVALID };