mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 08:43:24 +00:00
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:
parent
33b15ea906
commit
58088d5897
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue