mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Fix building OpenCS with Qt 5.
This commit is contained in:
parent
6ef2319eb8
commit
0a8e2c0b21
@ -528,8 +528,13 @@ void CSVRender::WorldspaceWidget::mouseMoveEvent (QMouseEvent *event)
|
|||||||
|
|
||||||
if (mDragging)
|
if (mDragging)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
|
mDragX = event->localPos().x();
|
||||||
|
mDragY = height() - event->localPos().y();
|
||||||
|
#else
|
||||||
mDragX = event->posF().x();
|
mDragX = event->posF().x();
|
||||||
mDragY = height() - event->posF().y();
|
mDragY = height() - event->posF().y();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user