Qt5,Qt6: fixed swapped width/height. issue #41575

This commit is contained in:
zeljan1 2025-04-07 22:28:18 +02:00
parent cb01b03ae6
commit 06a86413f2
2 changed files with 4 additions and 4 deletions

View File

@ -4481,10 +4481,10 @@ begin
begin
if TQtMainWindow(Handle).ScrollArea.VBarAllocated and
TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getVisible then
inc(Height, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
inc(Width, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
if TQtMainWindow(Handle).ScrollArea.HBarAllocated and
TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getVisible then
inc(Width, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
inc(Height, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
end;
{$ENDIF}
end else

View File

@ -4509,10 +4509,10 @@ begin
begin
if TQtMainWindow(Handle).ScrollArea.VBarAllocated and
TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getVisible then
inc(Height, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
inc(Width, TQtMainWindow(Handle).ScrollArea.verticalScrollBar.getWidth);
if TQtMainWindow(Handle).ScrollArea.HBarAllocated and
TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getVisible then
inc(Width, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
inc(Height, TQtMainWindow(Handle).ScrollArea.horizontalScrollBar.getHeight);
end;
{$ENDIF}
end else