mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:59:12 +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());
|
QWidget_setParent(Widget.Widget, QApplication_desktop());
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
if TCustomForm(AWinControl).BorderStyle <> bsNone then
|
||||||
|
begin
|
||||||
QWidget_setWindowFlags(Widget.Widget, QtDialog or
|
QWidget_setWindowFlags(Widget.Widget, QtDialog or
|
||||||
{$ifdef darwin}
|
{$ifdef darwin}
|
||||||
QtWindowSystemMenuHint or
|
QtWindowSystemMenuHint or
|
||||||
{$endif}
|
{$endif}
|
||||||
GetQtBorderIcons(TCustomForm(AWinControl).BorderStyle,
|
GetQtBorderIcons(TCustomForm(AWinControl).BorderStyle,
|
||||||
TCustomForm(AWinControl).BorderIcons));
|
TCustomForm(AWinControl).BorderIcons));
|
||||||
|
end;
|
||||||
|
|
||||||
Widget.setWindowModality(QtApplicationModal);
|
Widget.setWindowModality(QtApplicationModal);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user