mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
cursors: Connect cursors to time/freq display on dock
This commit is contained in:
@@ -95,6 +95,10 @@ TracePlot* PlotView::createQuadratureDemodPlot(SampleSource<std::complex<float>>
|
||||
|
||||
void PlotView::cursorsMoved()
|
||||
{
|
||||
int selection = cursors.selection().length();
|
||||
off_t sampleCount = coordToSample(selection);
|
||||
float selectionTime = sampleCount / (float)mainSampleSource->rate();
|
||||
emit timeSelectionChanged(selectionTime);
|
||||
viewport()->update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user