mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
1cae362c16
commit
b5e8ef160a
4 changed files with 14 additions and 1 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue