Added the Po2 Partial Pressure Graph.

Important to note that no Partial Pressure Graph handles
settings yet.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-23 18:03:28 -02:00 committed by Dirk Hohndel
parent 1cae362c16
commit b5e8ef160a
4 changed files with 14 additions and 1 deletions

View file

@ -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 };