diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-12-10 15:48:19 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-10 15:48:19 -0700 |
commit | c76cb59aa0e1db72cf2d74de109ac309674f3cfd (patch) | |
tree | 1f74b29ebc98a7c6a87e40f38a13c62b74875241 /qt-ui/profile | |
parent | 434f19cf5686bc3bf5782841811515496c369a38 (diff) | |
download | subsurface-c76cb59aa0e1db72cf2d74de109ac309674f3cfd.tar.gz |
More temperature plot position tuning
Depending on the options shown, the latest change appears to have moved
the temperature graph a bit too low. This seems to work better in my
experiments.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index c811f79dd..ad0d2eac0 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -359,7 +359,7 @@ void ProfileWidget2::setupItemSizes() // Temperature axis config itemPos.temperature.pos.on.setX(3); - itemPos.temperature.pos.on.setY(60); + itemPos.temperature.pos.on.setY(50); itemPos.temperatureAll.pos.on.setY(51); itemPos.temperature.pos.off.setX(-10); itemPos.temperature.pos.off.setY(40); @@ -520,7 +520,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) profileYAxis->updateTicks(); temperatureAxis->setMinimum(plotInfo.mintemp); - temperatureAxis->setMaximum(plotInfo.maxtemp); + temperatureAxis->setMaximum(plotInfo.maxtemp - plotInfo.mintemp > 2000 ? plotInfo.maxtemp : plotInfo.mintemp + 2000); if (plotInfo.maxhr) { heartBeatAxis->setMinimum(plotInfo.minhr); |