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:
zeljko 2013-01-29 15:59:17 +00:00
parent fe20196d3d
commit f2452b47e0

View File

@ -134,6 +134,16 @@ begin
Result := TQtWidget(Application.MainForm.Handle).Widget
else
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;
{------------------------------------------------------------------------------