From fa725e3d14ce796bc4a95451237fa3b79ae915f5 Mon Sep 17 00:00:00 2001 From: LoudSnorer Date: Thu, 11 Jul 2024 14:46:57 -0400 Subject: [PATCH] fix: Keyboard navigation doesn't work with bookmarks: OSCAR issue #103 problem/code by hansendc --- oscar/daily.cpp | 2 +- oscar/daily.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 0082376c..02273d8e 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -2439,7 +2439,7 @@ void Daily::on_evViewSlider_valueChanged(int value) GraphView->SetXBounds(st,et); } -void Daily::on_bookmarkTable_itemClicked(QTableWidgetItem *item) +void Daily::on_bookmarkTable_currentItemChanged(QTableWidgetItem *item, QTableWidgetItem *) { int row=item->row(); qint64 st,et; diff --git a/oscar/daily.h b/oscar/daily.h index d8cf1735..0f9005f2 100644 --- a/oscar/daily.h +++ b/oscar/daily.h @@ -232,11 +232,13 @@ private slots: */ void on_removeBookmarkButton_clicked(); - /*! \fn on_bookmarkTable_itemClicked(QTableWidgetItem *item); + /*! \fn on_bookmarkTable_currentItemChanged(QTableWidgetItem *item, QTableWidgetItem *previous) \brief Called when a bookmark has been selected.. Zooms in on the area \param QTableWidgetItem *item + \param QTableWidgetItem *previous */ - void on_bookmarkTable_itemClicked(QTableWidgetItem *item); + + void on_bookmarkTable_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous); /*! \fn on_bookmarkTable_itemChanged(QTableWidgetItem *item); \brief Called when bookmarks have been altered.. Saves the bookmark list to Journal object.