diff --git a/plugins/Compressor/CompressorControlDialog.cpp b/plugins/Compressor/CompressorControlDialog.cpp index 363098eec..47dc73ece 100755 --- a/plugins/Compressor/CompressorControlDialog.cpp +++ b/plugins/Compressor/CompressorControlDialog.cpp @@ -641,7 +641,7 @@ void CompressorControlDialog::resizeEvent(QResizeEvent *event) void CompressorControlDialog::wheelEvent(QWheelEvent * event) { const float temp = m_dbRange; - const float dbRangeNew = m_dbRange - copysignf(COMP_GRID_SPACING, event->delta()); + const float dbRangeNew = m_dbRange - copysignf(COMP_GRID_SPACING, event->angleDelta().y()); m_dbRange = round(qBound(COMP_GRID_SPACING, dbRangeNew, COMP_GRID_MAX) / COMP_GRID_SPACING) * COMP_GRID_SPACING; // Only reset view if the scolling had an effect diff --git a/src/gui/widgets/LcdFloatSpinBox.cpp b/src/gui/widgets/LcdFloatSpinBox.cpp index 0e640e86c..566e13fc4 100644 --- a/src/gui/widgets/LcdFloatSpinBox.cpp +++ b/src/gui/widgets/LcdFloatSpinBox.cpp @@ -181,7 +181,7 @@ void LcdFloatSpinBox::wheelEvent(QWheelEvent *event) else { m_intStep = false; } event->accept(); - model()->setValue(model()->value() + ((event->delta() > 0) ? 1 : -1) * getStep()); + model()->setValue(model()->value() + ((event->angleDelta().y() > 0) ? 1 : -1) * getStep()); emit manualChange(); }