From 2d8ae1329bcb2464e8b0344d1540b2a138e98ed9 Mon Sep 17 00:00:00 2001 From: srcejon Date: Tue, 3 Oct 2023 16:10:08 +0100 Subject: [PATCH] Add signal for when annotations change --- sdrgui/gui/glspectrumview.cpp | 2 ++ sdrgui/gui/glspectrumview.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sdrgui/gui/glspectrumview.cpp b/sdrgui/gui/glspectrumview.cpp index c5c47c0b2..9e3fb7ae5 100644 --- a/sdrgui/gui/glspectrumview.cpp +++ b/sdrgui/gui/glspectrumview.cpp @@ -3599,6 +3599,8 @@ void GLSpectrumView::updateWaterfallMarkers() void GLSpectrumView::updateAnnotationMarkers() { + emit updateAnnotations(); // Notify other plugins we have updated annotations + if (!(m_markersDisplay & SpectrumSettings::MarkersDisplayAnnotations)) { return; } diff --git a/sdrgui/gui/glspectrumview.h b/sdrgui/gui/glspectrumview.h index 2d8a85c9a..40a080dbf 100644 --- a/sdrgui/gui/glspectrumview.h +++ b/sdrgui/gui/glspectrumview.h @@ -535,6 +535,9 @@ private slots: signals: // Emitted when user tries to scroll to frequency currently out of range void requestCenterFrequency(qint64 frequency); + // Emitted when annotations are changed + void updateAnnotations(); + }; #endif // INCLUDE_GLSPECTRUMVIEW_H