1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Merge pull request #1501 from srcejon/fix_1499

3D spectrum: Allow = as well as + to be used for zoom.
This commit is contained in:
Edouard Griffiths 2022-11-05 22:50:14 +01:00 committed by GitHub
commit fc2e5f5821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2194,7 +2194,7 @@ void GLSpectrumView::measurePeaks()
}
}
delete spectrum;
delete[] spectrum;
}
// Calculate and display channel power
@ -4893,6 +4893,7 @@ bool GLSpectrumView::eventFilter(QObject *object, QEvent *event)
m_glShaderSpectrogram.rotateZ(-5.0f);
}
break;
case Qt::Key_Equal: // So you don't need to press shift
case Qt::Key_Plus:
if (keyEvent->modifiers() & Qt::ControlModifier) {
m_glShaderSpectrogram.userScaleZ(1.1f);