mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 01:49:27 +02:00
Qt: allow showin modal form with borderStyle=bsNone. issue #22568
git-svn-id: trunk@38148 -
This commit is contained in:
parent
b10d611dbd
commit
96b40a914a
@ -443,12 +443,15 @@ begin
|
||||
QWidget_setParent(Widget.Widget, QApplication_desktop());
|
||||
{$endif}
|
||||
|
||||
QWidget_setWindowFlags(Widget.Widget, QtDialog or
|
||||
{$ifdef darwin}
|
||||
QtWindowSystemMenuHint or
|
||||
{$endif}
|
||||
GetQtBorderIcons(TCustomForm(AWinControl).BorderStyle,
|
||||
TCustomForm(AWinControl).BorderIcons));
|
||||
if TCustomForm(AWinControl).BorderStyle <> bsNone then
|
||||
begin
|
||||
QWidget_setWindowFlags(Widget.Widget, QtDialog or
|
||||
{$ifdef darwin}
|
||||
QtWindowSystemMenuHint or
|
||||
{$endif}
|
||||
GetQtBorderIcons(TCustomForm(AWinControl).BorderStyle,
|
||||
TCustomForm(AWinControl).BorderIcons));
|
||||
end;
|
||||
|
||||
Widget.setWindowModality(QtApplicationModal);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user