kopia lustrzana https://github.com/PianetaRadio/CatRadio
vfodisplay WheelEvent pos
QT version check for compatibility pos or position1.2.0
rodzic
9486e3d17f
commit
0f0c46126a
|
@ -141,7 +141,11 @@ void vfoDisplay::wheelEvent(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
event->accept();
|
event->accept();
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
QPointF pointerPos = event->position();
|
QPointF pointerPos = event->position();
|
||||||
|
#else
|
||||||
|
QPointF pointerPos = event->pos();
|
||||||
|
#endif
|
||||||
|
|
||||||
for (int i = 1; i < 10; i ++)
|
for (int i = 1; i < 10; i ++)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue