[GB.QT5]
* 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:
parent
6e894e0df3
commit
2cdc040066
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue