aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-07 21:38:06 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 07:22:42 -0800
commit39a11d70923940f45b5e1493dabfa934ec2a79c6 (patch)
tree0bf4b84e8f512e043c5c28eb820c88303cf87963 /qt-ui/profile/profilewidget2.cpp
parentcacf5b3b2479220f4aa56879928ffe23a4277a7f (diff)
downloadsubsurface-39a11d70923940f45b5e1493dabfa934ec2a79c6.tar.gz
Fix placement of notification area and dive computer name.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index d64da9964..76c560fa6 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -146,7 +146,7 @@ void ProfileWidget2::setupItemOnScene()
cartesianPlane->setBottomAxis(timeAxis);
cartesianPlane->setLeftAxis(profileYAxis);
- diveComputerText->setAlignment(Qt::AlignRight | Qt::AlignTop);
+ diveComputerText->setAlignment(Qt::AlignRight | Qt::AlignBottom);
diveComputerText->setBrush(getColor(TIME_TEXT));
setupItem(reportedCeiling, timeAxis, profileYAxis, dataModel, DivePlotDataModel::CEILING, DivePlotDataModel::TIME, 1);
@@ -345,7 +345,6 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
}
diveComputerText->setText(currentdc->model);
- diveComputerText->animateMoveTo(1 , sceneRect().height());
}
void ProfileWidget2::settingsChanged()
@@ -411,8 +410,8 @@ void ProfileWidget2::mouseMoveEvent(QMouseEvent* event)
if (zoomLevel == 0) {
QGraphicsView::mouseMoveEvent(event);
} else {
- toolTipItem->setPos(mapToScene(toolTipPos));
scrollViewTo(event->pos());
+ toolTipItem->setPos(mapToScene(toolTipPos));
}
}