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>
This commit is contained in:
Tomaz Canabrava 2014-02-07 21:38:06 -02:00 committed by Dirk Hohndel
parent cacf5b3b24
commit 39a11d7092
2 changed files with 3 additions and 4 deletions

View file

@ -262,7 +262,7 @@ void DiveTemperatureItem::createTextItem(int sec, int mkelvin)
deg = get_temp_units(mkelvin, &unit);
DiveTextItem *text = new DiveTextItem(this);
text->setAlignment(Qt::AlignHCenter | Qt::AlignBottom);
text->setAlignment(Qt::AlignRight | Qt::AlignBottom);
text->setBrush(getColor(TEMP_TEXT));
text->setPos(QPointF(hAxis->posAtValue(sec), vAxis->posAtValue(mkelvin)));
text->setText(QString("%1%2").arg(deg, 0, 'f', 1).arg(unit));

View file

@ -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));
}
}