mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:36:16 +02:00
Qt: fixed problem with clientrect sizes when QTSCROLLABLEFORMS are enabled.part of issue #24715
git-svn-id: trunk@43236 -
This commit is contained in:
parent
87855fd53e
commit
ccf61e6739
@ -637,7 +637,6 @@ type
|
||||
function GetContainerWidget: QWidgetH; override;
|
||||
procedure grabMouse; override;
|
||||
function getClientOffset: TPoint; override;
|
||||
function getClientBounds: TRect; override;
|
||||
|
||||
function getText: WideString; override;
|
||||
function getTextStatic: Boolean; override;
|
||||
@ -6433,18 +6432,6 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TQtMainWindow.getClientBounds: TRect;
|
||||
begin
|
||||
{$IFDEF QTSCROLLABLEFORMS}
|
||||
if Assigned(ScrollArea) then
|
||||
Result := ScrollArea.getClientBounds
|
||||
else
|
||||
Result := inherited getClientBounds;
|
||||
{$ELSE}
|
||||
Result:=inherited getClientBounds;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TQtMainWindow.getText: WideString;
|
||||
begin
|
||||
WindowTitle(@Result);
|
||||
|
Loading…
Reference in New Issue
Block a user