From 4525fbb147dc9b6e3bddce14453747fa4f97b189 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Feb 2014 23:01:20 -0200 Subject: Fix z-value of the PartialPressure gas graph over the timeAxis Fiz zvalue of the partialPressure Gas Graph over the TimeAxis, and also corrects the position of the PartialPressure gas graph. It now no longer appears to 'float' over the TimeAxis, now it's on the very top of it. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 06f1f6707..422adabb0 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -169,7 +169,8 @@ void ProfileWidget2::setupItemOnScene() ITEM->setThreshouldSettingsKey(THRESHOULD_SETTINGS); \ ITEM->setVisibilitySettingsKey(VISIBILITY_SETTINGS); \ ITEM->setColors(getColor(COLOR), getColor(COLOR_ALERT)); \ - ITEM->preferencesChanged(); + ITEM->preferencesChanged(); \ + ITEM->setZValue(99); CREATE_PP_GAS( pn2GasItem, PN2, PN2, PN2_ALERT, "pn2threshold", "pn2graph"); CREATE_PP_GAS( pheGasItem, PHE, PHE, PHE_ALERT, "phethreshold", "phegraph"); @@ -182,6 +183,8 @@ void ProfileWidget2::setupItemOnScene() cylinderPressureAxis->setLinesVisible(false); timeAxis->setLinesVisible(true); profileYAxis->setLinesVisible(true); + gasYAxis->setZValue(timeAxis->zValue()+1); + } void ProfileWidget2::setupItemSizes() @@ -218,9 +221,9 @@ void ProfileWidget2::setupItemSizes() // Partial Gas Axis Config itemPos.partialPressure.pos.on.setX(97); - itemPos.partialPressure.pos.on.setY(60); + itemPos.partialPressure.pos.on.setY(67); itemPos.partialPressure.pos.off.setX(110); - itemPos.partialPressure.pos.off.setY(60); + itemPos.partialPressure.pos.off.setY(63); itemPos.partialPressure.expanded.setP1(QPointF(0,0)); itemPos.partialPressure.expanded.setP2(QPointF(0,30)); -- cgit v1.2.3-70-g09d2