Fix Qt deprecated mousewheel delta() functions (#5974)
* Replace deprecated mousewheel delta() function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user