mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 09:00:47 +02:00
Qt: trial to fix Qt bug when dialog is shown with QtTool as parent. issue #23778
git-svn-id: trunk@40025 -
This commit is contained in:
parent
fe20196d3d
commit
f2452b47e0
@ -134,6 +134,16 @@ begin
|
|||||||
Result := TQtWidget(Application.MainForm.Handle).Widget
|
Result := TQtWidget(Application.MainForm.Handle).Widget
|
||||||
else
|
else
|
||||||
Result := nil;
|
Result := nil;
|
||||||
|
{$IFDEF MSWINDOWS}
|
||||||
|
if Assigned(Result) then
|
||||||
|
begin
|
||||||
|
if (QWidget_windowFlags(Result) and QtTool <> 0) or
|
||||||
|
(QWidget_windowFlags(Result) and QtDrawer <> 0) or
|
||||||
|
(QWidget_windowFlags(Result) and QtSheet <> 0) or
|
||||||
|
(QWidget_windowFlags(Result) and QtPopup <> 0) then
|
||||||
|
Result := QApplication_desktop;
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user