mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:59:21 +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;
|
end;
|
||||||
|
|
||||||
Widget.BeginUpdate;
|
Widget.BeginUpdate;
|
||||||
if AWinControl.HandleObjectShouldBeVisible
|
if not (csDesigning in AWinControl.ComponentState) then
|
||||||
and (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop) then
|
|
||||||
begin
|
begin
|
||||||
Flags := Widget.windowFlags;
|
if AWinControl.HandleObjectShouldBeVisible
|
||||||
if (Flags and QtWindowStaysOnTopHint = 0) then
|
and (TCustomForm(AWinControl).FormStyle in fsAllStayOnTop) 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
|
begin
|
||||||
Flags := Widget.windowFlags;
|
Flags := Widget.windowFlags;
|
||||||
Flags := Flags and not QtWindowStaysOnTopHint;
|
if (Flags and QtWindowStaysOnTopHint = 0) then
|
||||||
Widget.setWindowFlags(Flags);
|
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;
|
||||||
end;
|
end;
|
||||||
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||||
|
Loading…
Reference in New Issue
Block a user