mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 05:19:25 +02:00
Qt5, Qt6: fixed PopupParent = modal form, issue #41241
(cherry picked from commit 9ba7c6e286
)
Co-authored-by: Željan Rikalo <zeljko@lazarus-ide.org>
This commit is contained in:
parent
5b60a5e128
commit
194bd07f82
@ -630,8 +630,7 @@ begin
|
||||
if (APopupParent <> nil) then
|
||||
begin
|
||||
Widget.setParent(TQtWidget(APopupParent.Handle).Widget);
|
||||
{use direct X11 call instead of QtTool flag.issue #29253}
|
||||
SetTransientForHint(Widget.Widget, TQtWidget(APopupParent.Handle).Widget);
|
||||
Widget.setWindowFlags(Widget.windowFlags or QtDialog); // issue #41241
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
@ -627,10 +627,7 @@ begin
|
||||
if (APopupParent <> nil) then
|
||||
begin
|
||||
Widget.setParent(TQtWidget(APopupParent.Handle).Widget);
|
||||
{use direct X11 call instead of QtTool flag.issue #29253}
|
||||
//SetTransientForHint(Widget.Widget, TQtWidget(APopupParent.Handle).Widget);
|
||||
{$note check if this is good supplement for SetTransientForHint}
|
||||
// QWindow_setTransientParent(Widget.WindowHandle, TQtWidget(APopupParent.Handle).WindowHandle);
|
||||
Widget.setWindowFlags(Widget.windowFlags or QtDialog); // issue #41241
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user