Fix building OpenCS with Qt 5.

openmw-37
Rohit Nirmal 9 years ago
parent 6ef2319eb8
commit 0a8e2c0b21

@ -528,8 +528,13 @@ void CSVRender::WorldspaceWidget::mouseMoveEvent (QMouseEvent *event)
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();
mDragY = height() - event->posF().y();
#endif
}
}
}

Loading…
Cancel
Save