Complete add bookmark for the profile context menu

This (together with the commits fixing the QMessageBox title) should
finally close all the issues in bug 250.

Fixes #250

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-21 05:11:41 -08:00
parent 33b15ea906
commit 58088d5897

View file

@ -158,7 +158,10 @@ void ProfileGraphicsView::addBookmark()
QPoint globalPos = action->data().toPoint();
QPoint viewPos = mapFromGlobal(globalPos);
QPointF scenePos = mapToScene(viewPos);
qDebug() << "Add Bookmark";
int seconds = scenePos.x() / gc.maxx * (gc.rightx - gc.leftx) + gc.leftx;
add_event(current_dc, seconds, SAMPLE_EVENT_BOOKMARK, 0, 0, "bookmark");
mark_divelist_changed(TRUE);
plot(current_dive, TRUE);
}
void ProfileGraphicsView::changeGas()