Improve replacement for qDegreesToRadians

This is for Qt 5.0.X compatibility.
This commit is contained in:
Jean-Marc Lasgouttes 2022-11-25 00:06:06 +01:00
parent b50fad3579
commit c24233e3f1

View File

@ -33,7 +33,7 @@
#if QT_VERSION >= 0x050100
#include <QtMath>
#else
#define qDegreesToRadians(degree) (degree * (M_PI / 180))
#define qDegreesToRadians(degree) (degree) * (M_PI / 180)
#endif
using namespace std;