mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 21:18:06 +02:00
Qt5,Qt6: fixes sizepos loop error. issue #41508
This commit is contained in:
parent
1fb8e5a099
commit
a7c6c82c2b
@ -4440,6 +4440,12 @@ begin
|
|||||||
{$endif}
|
{$endif}
|
||||||
if Handle = 0 then
|
if Handle = 0 then
|
||||||
Exit(False);
|
Exit(False);
|
||||||
|
if QWidget_isTopLevel(TQtWidget(Handle).Widget) then
|
||||||
|
begin
|
||||||
|
R := Rect(0, 0, 0, 0);
|
||||||
|
if GetWindowRect(Handle, R) = 0 then
|
||||||
|
R := TQtWidget(Handle).getFrameGeometry;
|
||||||
|
end else
|
||||||
R := TQtWidget(Handle).getFrameGeometry;
|
R := TQtWidget(Handle).getFrameGeometry;
|
||||||
Left := R.Left;
|
Left := R.Left;
|
||||||
Top := R.Top;
|
Top := R.Top;
|
||||||
|
@ -4467,6 +4467,12 @@ begin
|
|||||||
{$endif}
|
{$endif}
|
||||||
if Handle = 0 then
|
if Handle = 0 then
|
||||||
Exit(False);
|
Exit(False);
|
||||||
|
if QWidget_isTopLevel(TQtWidget(Handle).Widget) then
|
||||||
|
begin
|
||||||
|
R := Rect(0, 0, 0, 0);
|
||||||
|
if GetWindowRect(Handle, R) = 0 then
|
||||||
|
R := TQtWidget(Handle).getFrameGeometry;
|
||||||
|
end else
|
||||||
R := TQtWidget(Handle).getFrameGeometry;
|
R := TQtWidget(Handle).getFrameGeometry;
|
||||||
Left := R.Left;
|
Left := R.Left;
|
||||||
Top := R.Top;
|
Top := R.Top;
|
||||||
|
Loading…
Reference in New Issue
Block a user