mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 03:44:05 +00:00
Fix building OpenCS with Qt 5.
This commit is contained in:
parent
6ef2319eb8
commit
0a8e2c0b21
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue