mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 11:19:24 +02:00
Qt: don't touch flags if we are in design time.
git-svn-id: trunk@26624 -
This commit is contained in:
parent
32353ca72a
commit
b06d7701df
@ -412,23 +412,26 @@ begin
|
||||
end;
|
||||
|
||||
Widget.BeginUpdate;
|
||||
if AWinControl.HandleObjectShouldBeVisible
|
||||
and (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop) then
|
||||
if not (csDesigning in AWinControl.ComponentState) then
|
||||
begin
|
||||
Flags := Widget.windowFlags;
|
||||
if (Flags and QtWindowStaysOnTopHint = 0) then
|
||||
begin
|
||||
Flags := Flags or QtWindowStaysOnTopHint;
|
||||
Widget.setWindowFlags(Flags);
|
||||
end;
|
||||
end else
|
||||
begin
|
||||
if (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop)
|
||||
and not (csDestroying in AWinControl.ComponentState) then
|
||||
if AWinControl.HandleObjectShouldBeVisible
|
||||
and (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop) then
|
||||
begin
|
||||
Flags := Widget.windowFlags;
|
||||
Flags := Flags and not QtWindowStaysOnTopHint;
|
||||
Widget.setWindowFlags(Flags);
|
||||
if (Flags and QtWindowStaysOnTopHint = 0) then
|
||||
begin
|
||||
Flags := Flags or QtWindowStaysOnTopHint;
|
||||
Widget.setWindowFlags(Flags);
|
||||
end;
|
||||
end else
|
||||
begin
|
||||
if (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop)
|
||||
and not (csDestroying in AWinControl.ComponentState) then
|
||||
begin
|
||||
Flags := Widget.windowFlags;
|
||||
Flags := Flags and not QtWindowStaysOnTopHint;
|
||||
Widget.setWindowFlags(Flags);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||
|
Loading…
Reference in New Issue
Block a user