mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 15:04:19 +01:00
controls: Add zoomIn/zoomOut slots & signals
This commit is contained in:
@@ -142,3 +142,13 @@ void SpectrogramControls::timeSelectionChanged(float time)
|
||||
bitSelectionFreqLabel->setText(QString::number(bits / time) + "Hz");
|
||||
}
|
||||
}
|
||||
|
||||
void SpectrogramControls::zoomIn()
|
||||
{
|
||||
zoomLevelSlider->setValue(zoomLevelSlider->value() + 1);
|
||||
}
|
||||
|
||||
void SpectrogramControls::zoomOut()
|
||||
{
|
||||
zoomLevelSlider->setValue(zoomLevelSlider->value() - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user