Fix warning about deprecated function (Qt).

merge-requests/1/merge
Teuniz 2022-10-13 11:45:30 +02:00
rodzic 55e5bce804
commit 0004291efa
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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();