* BUG: Remove Mouse.ScreenX and Mouse.ScreenY optimization based on the contents of a mouse event. Apparently it works with QT4 but not with QT5.


git-svn-id: svn://localhost/gambas/trunk@7643 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-03-19 00:41:01 +00:00
parent 6e894e0df3
commit 2cdc040066

View file

@ -182,14 +182,22 @@ END_PROPERTY
BEGIN_PROPERTY(Mouse_ScreenX)
#ifdef QT5
GB.ReturnInteger(QCursor::pos().x());
#else
GB.ReturnInteger(MOUSE_info.valid ? MOUSE_info.screenX : QCursor::pos().x());
#endif
END_PROPERTY
BEGIN_PROPERTY(Mouse_ScreenY)
#ifdef QT5
GB.ReturnInteger(QCursor::pos().y());
#else
GB.ReturnInteger(MOUSE_info.valid ? MOUSE_info.screenY : QCursor::pos().y());
#endif
END_PROPERTY