From 9d2344d01b05dab1c1d5d59893b980366a041e17 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 19 Jan 2014 17:19:00 -0200 Subject: Fix the positioning of the Labels using the new DiveTextItem This uses a combination of items on the canvas which makes it easier to position it where I want. This also broke the other texts because I forgot about them. I will fix that on the next commit. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index bb14cf28b..41e1c2b99 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -294,12 +294,10 @@ void ProfileWidget2::plotDives(QList dives) profileYAxis->updateTicks(); temperatureAxis->setMinimum(pInfo.mintemp); temperatureAxis->setMaximum(pInfo.maxtemp); - //temperatureAxis->updateTicks(); timeAxis->setMaximum(maxtime); timeAxis->updateTicks(); cylinderPressureAxis->setMinimum(pInfo.minpressure); cylinderPressureAxis->setMaximum(pInfo.maxpressure); - cylinderPressureAxis->updateTicks(); meanDepth->animateMoveTo(3, profileYAxis->posAtValue(pInfo.meandepth)); dataModel->setDive(current_dive, pInfo); -- cgit v1.2.3-70-g09d2