Qt: fixed problem with clientrect sizes when QTSCROLLABLEFORMS are enabled.part of issue #24715

git-svn-id: trunk@43236 -
This commit is contained in:
zeljko 2013-10-13 12:22:11 +00:00
parent 87855fd53e
commit ccf61e6739

View File

@ -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);