mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 20:28:19 +02:00
Qt: enabled AppRemoveStayOnTopFlags & AppRestoreStayOnTopFlags
git-svn-id: trunk@25534 -
This commit is contained in:
parent
7029a5ebf8
commit
b0ec64ca2d
@ -314,18 +314,14 @@ end;
|
||||
|
||||
function TQtWidgetSet.AppRemoveStayOnTopFlags: Boolean;
|
||||
begin
|
||||
Result := False;
|
||||
{$note uncomment implementation when LCL side reworked}
|
||||
// Result := True;
|
||||
// QtRemoveStayOnTop;
|
||||
Result := True;
|
||||
QtRemoveStayOnTop;
|
||||
end;
|
||||
|
||||
function TQtWidgetSet.AppRestoreStayOnTopFlags: Boolean;
|
||||
begin
|
||||
Result := False;
|
||||
{$note uncomment implementation when LCL side reworked}
|
||||
// Result := True;
|
||||
// QtRestoreStayOnTop;
|
||||
Result := True;
|
||||
QtRestoreStayOnTop;
|
||||
end;
|
||||
|
||||
procedure TQtWidgetSet.SetOverrideCursor(const AValue: TObject);
|
||||
@ -357,7 +353,7 @@ begin
|
||||
begin
|
||||
W := TQtMainWindow(AForm.Handle);
|
||||
if (AForm.Parent = nil) and
|
||||
(AForm.FormStyle in [fsStayOnTop, fsSplash]) and W.GetVisible and
|
||||
(AForm.FormStyle in fsAllNonSystemStayOnTop) and W.GetVisible and
|
||||
not W.IsMdiChild and not W.IsModal and not w.isMinimized then
|
||||
begin
|
||||
Flags := W.windowFlags;
|
||||
@ -393,7 +389,7 @@ begin
|
||||
begin
|
||||
W := TQtMainWindow(AForm.Handle);
|
||||
if (AForm.Parent = nil) and
|
||||
(AForm.FormStyle in [fsStayOnTop, fsSplash]) and W.GetVisible and
|
||||
(AForm.FormStyle in fsAllNonSystemStayOnTop) and W.GetVisible and
|
||||
not W.IsMdiChild and not W.IsModal and not W.isMinimized then
|
||||
begin
|
||||
if StayOnTopList.HasId(W) then
|
||||
|
Loading…
Reference in New Issue
Block a user