kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Fix warning about deprecated function (Qt).
rodzic
55e5bce804
commit
0004291efa
|
@ -427,7 +427,11 @@ double TDial::polar_to_degr(double px, double py)
|
|||
|
||||
void TDial::wheelEvent(QWheelEvent *wheel_event)
|
||||
{
|
||||
#if QT_VERSION >= 0x050C00
|
||||
dial_grad += (wheel_event->angleDelta().y() / 8);
|
||||
#else
|
||||
dial_grad += (wheel_event->delta() / 8);
|
||||
#endif
|
||||
|
||||
process_rotation();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue