mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:50:25 +02:00
qt intf: fixed GetWindowRect right and bottom
git-svn-id: trunk@26108 -
This commit is contained in:
parent
80f6b8f7de
commit
62d2ab1ab0
@ -3630,14 +3630,7 @@ begin
|
||||
QWidget_mapToGlobal(AParent, @APos, @APos);
|
||||
|
||||
R1 := TQtWidget(Handle).getFrameGeometry;
|
||||
|
||||
ARect.Left := APos.x;
|
||||
ARect.Top := APos.y;
|
||||
with R1 do
|
||||
begin
|
||||
ARect.Right := ARect.Left + (Right - Left);
|
||||
ARect.Bottom := ARect.Top + (Bottom - Top);
|
||||
end;
|
||||
ARect:=Bounds(APos.X,APos.Y,R1.Right-R1.Left,R1.Bottom-R1.Top);
|
||||
|
||||
Result := -1;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user