mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 20:22:37 +02:00
Qt: small optimization - do not send LM_SHOWWINDOW msg when LCL setted up visibility via ShowHide
git-svn-id: trunk@24208 -
This commit is contained in:
parent
6bce7d6359
commit
a5ba77a96e
@ -2002,6 +2002,10 @@ begin
|
||||
WriteLn('TQtWidget.SlotShow Name', LCLObject.Name, ' vShow: ', dbgs(vShow));
|
||||
{$endif}
|
||||
|
||||
{do not pass message to LCL if LCL setted up control visibility}
|
||||
if inUpdate then
|
||||
exit;
|
||||
|
||||
FillChar(Msg, SizeOf(Msg), #0);
|
||||
|
||||
Msg.Msg := LM_SHOWWINDOW;
|
||||
|
@ -216,7 +216,9 @@ begin
|
||||
TQtMainWindow(Widget).setWindowState(LCLToQtWindowState[TCustomForm(AWinControl).WindowState]);
|
||||
end;
|
||||
|
||||
Widget.BeginUpdate;
|
||||
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||
Widget.EndUpdate;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -530,7 +532,9 @@ begin
|
||||
|
||||
Widget := TQtWidget(AWinControl.Handle);
|
||||
|
||||
Widget.BeginUpdate;
|
||||
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||
Widget.EndUpdate;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -362,7 +362,9 @@ begin
|
||||
if AWinControl.HandleObjectShouldBeVisible then
|
||||
SetParams(TCustomScrollBar(AWinControl));
|
||||
|
||||
Widget.BeginUpdate;
|
||||
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||
Widget.EndUpdate;
|
||||
end;
|
||||
|
||||
{ TQtWSCustomListBox }
|
||||
|
Loading…
Reference in New Issue
Block a user