diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-02-15 23:01:20 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-15 17:30:25 -0800 |
commit | 4525fbb147dc9b6e3bddce14453747fa4f97b189 (patch) | |
tree | 1b6a9fc5a8db8fe96b45d6492c5b749ffea5aabc /qt-ui | |
parent | 44a72b805cffd64925e7bbcc44d7f4a8a675e82f (diff) | |
download | subsurface-4525fbb147dc9b6e3bddce14453747fa4f97b189.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 9 |
1 files 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)); |