Qt5: do not update client rect cache if we are TQtWindowArea

git-svn-id: trunk@62941 -
This commit is contained in:
zeljko 2020-04-11 10:25:06 +00:00
parent 2140309105
commit 20ca27b476

View File

@ -4295,8 +4295,8 @@ begin
InResizeEvent := True;
try
// do not loop with LCL but do not apply it to TQtMainWindow !
if not (csDesigning in LCLObject.ComponentState) then
if not (ClassType = TQtMainWindow) and InUpdate then
if not (csDesigning in LCLObject.ComponentState) and
not ((ClassType = TQtMainWindow) or (ClassType = TQtWindowArea)) and InUpdate then
begin
AQtClientRect := Rect(0, 0, 0, 0);
if FOwner <> nil then