mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 12:59:19 +02:00
Qt: Enable titlebar buttons (close,min,max) on modal windows under MacOsX
git-svn-id: trunk@16864 -
This commit is contained in:
parent
0e0ed50080
commit
a5bb936929
@ -195,6 +195,9 @@ begin
|
|||||||
QWidget_setParent(Widget.Widget, QApplication_activeWindow());
|
QWidget_setParent(Widget.Widget, QApplication_activeWindow());
|
||||||
QWidget_setWindowFlags(Widget.Widget, QtDialog);
|
QWidget_setWindowFlags(Widget.Widget, QtDialog);
|
||||||
{$endif}
|
{$endif}
|
||||||
|
{$ifdef darwin}
|
||||||
|
QWidget_setWindowFlags(Widget.Widget, QtDialog or QtWindowSystemMenuHint or QtCustomizeWindowHint);
|
||||||
|
{$endif}
|
||||||
Widget.setWindowModality(QtApplicationModal);
|
Widget.setWindowModality(QtApplicationModal);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user