mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-16 03:57:16 -04:00
Fix Qt deprecated mousewheel delta() functions (#5974)
* Replace deprecated mousewheel delta() function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user