mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 12:39:32 +02:00
Qt: unset taskbar button only when showintaskbar=stNever.
git-svn-id: trunk@48777 -
This commit is contained in:
parent
8250ced275
commit
d2ddc67301
@ -6717,6 +6717,11 @@ begin
|
||||
if (NewParent = nil) and (FPopupMode <> pmNone) and
|
||||
not FShowOnTaskBar and not IsMainForm then
|
||||
NewParent := TQtMainWindow(Application.MainForm.Handle).Widget;
|
||||
{$IFDEF MSWINDOWS}
|
||||
if (NewParent = nil) and (FPopupMode = pmNone) and
|
||||
not FShowOnTaskBar and not IsMainForm then
|
||||
NewParent := TQtMainWindow(Application.MainForm.Handle).Widget;
|
||||
{$ENDIF}
|
||||
ChangeParent(NewParent);
|
||||
end;
|
||||
|
||||
|
@ -200,7 +200,7 @@ begin
|
||||
(Application.MainForm.HandleAllocated) and
|
||||
(Application.MainForm <> AForm) then
|
||||
begin
|
||||
if (AForm.ShowInTaskBar in [stDefault, stNever])
|
||||
if (AForm.ShowInTaskBar = stNever)
|
||||
{$ifdef HASX11}
|
||||
{QtTool have not minimize button !}
|
||||
and (not (AForm.BorderStyle in [bsSizeToolWin, bsToolWindow]) and
|
||||
|
Loading…
Reference in New Issue
Block a user