Qt: fixed bug when control doesn't have csCaptureMouse, but mouse is higher than width or height of control.

git-svn-id: trunk@30153 -
This commit is contained in:
zeljko 2011-04-03 13:39:55 +00:00
parent 67aec0c9c4
commit 7674b680b6

View File

@ -2975,7 +2975,8 @@ begin
if not (csCaptureMouse in LCLObject.ControlStyle) and
(QApplication_mouseButtons() <> QtNoButton) and
((MousePos.X < 0) or (MousePos.Y < 0)) then
(((MousePos.X < 0) or (MousePos.Y < 0)) or
((MousePos.X > getWidth) or (MousePos.Y > getHeight))) then
begin
if not QWidget_underMouse(Widget) then
exit;