Add signal for when annotations change

pull/1852/head
srcejon 2023-10-03 16:10:08 +01:00
rodzic 83ceae4ba3
commit 2d8ae1329b
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -3599,6 +3599,8 @@ void GLSpectrumView::updateWaterfallMarkers()
void GLSpectrumView::updateAnnotationMarkers() void GLSpectrumView::updateAnnotationMarkers()
{ {
emit updateAnnotations(); // Notify other plugins we have updated annotations
if (!(m_markersDisplay & SpectrumSettings::MarkersDisplayAnnotations)) { if (!(m_markersDisplay & SpectrumSettings::MarkersDisplayAnnotations)) {
return; return;
} }

Wyświetl plik

@ -535,6 +535,9 @@ private slots:
signals: signals:
// Emitted when user tries to scroll to frequency currently out of range // Emitted when user tries to scroll to frequency currently out of range
void requestCenterFrequency(qint64 frequency); void requestCenterFrequency(qint64 frequency);
// Emitted when annotations are changed
void updateAnnotations();
}; };
#endif // INCLUDE_GLSPECTRUMVIEW_H #endif // INCLUDE_GLSPECTRUMVIEW_H