mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 18:39:05 +02:00
Qt: do not set modality, but use active modal window as parent of TQtHintWindow. part of issue #30235
git-svn-id: trunk@54079 -
This commit is contained in:
parent
883293a51a
commit
64119b2b0f
@ -18094,6 +18094,9 @@ begin
|
||||
FNeedRestoreVisible := False;
|
||||
if AParams.WndParent <> 0 then
|
||||
Parent := TQtWidget(AParams.WndParent).GetContainerWidget
|
||||
else
|
||||
if QApplication_activeModalWidget <> nil then
|
||||
Parent := QApplication_activeModalWidget
|
||||
else
|
||||
Parent := nil;
|
||||
Result := QWidget_create(Parent, QtToolTip);
|
||||
|
@ -1044,12 +1044,6 @@ begin
|
||||
AWidget := TQtHintWindow(AWinControl.Handle);
|
||||
|
||||
AWidget.BeginUpdate;
|
||||
|
||||
if AWinControl.HandleObjectShouldBeVisible then
|
||||
begin
|
||||
if QApplication_activeModalWidget <> nil then
|
||||
QWidget_setWindowModality(AWidget.Widget, QtWindowModal);
|
||||
end;
|
||||
AWidget.setVisible(AWinControl.HandleObjectShouldBeVisible);
|
||||
AWidget.EndUpdate;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user