From cbd29680050b98d33cf05017be3c842d79743376 Mon Sep 17 00:00:00 2001 From: zeljko Date: Tue, 16 Feb 2016 12:10:05 +0000 Subject: [PATCH] Qt: adjust clientrect of MDIChild if needed, after restoring from minimized state. git-svn-id: trunk@51637 - --- lcl/interfaces/qt/qtwidgets.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index 0f54e068da..fbe7cbc4d1 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -7219,6 +7219,10 @@ begin {inform LCL about change} SlotWindowStateChange; + if (AOldState and QtWindowMinimized <> 0) and (ANewState and QtWindowMinimized = 0) and + (ANewState and QtWindowMaximized = 0) and LCLObject.ClientRectNeedsInterfaceUpdate then + LCLObject.DoAdjustClientRectChange(True); + {activate next mdi in chain if we are minimized} if Assigned(MDIChildArea) and (ANewState and QtWindowMinimized = QtWindowMinimized) and