From c76cb59aa0e1db72cf2d74de109ac309674f3cfd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 10 Dec 2014 15:48:19 -0700 Subject: 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 --- qt-ui/profile/profilewidget2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/profile/profilewidget2.cpp') 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); -- cgit v1.2.3-70-g09d2