From ccf61e6739101c8313c21a3c94ec4f64c9f3e3c7 Mon Sep 17 00:00:00 2001 From: zeljko Date: Sun, 13 Oct 2013 12:22:11 +0000 Subject: [PATCH] Qt: fixed problem with clientrect sizes when QTSCROLLABLEFORMS are enabled.part of issue #24715 git-svn-id: trunk@43236 - --- lcl/interfaces/qt/qtwidgets.pas | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index b4cd39d6fa..23853edeeb 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -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);