mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 07:00:35 +02:00
Qt5: do not set modality, but use active modal window as parent of TQtHintWindow. part of issue #30235
git-svn-id: trunk@54080 -
This commit is contained in:
parent
64119b2b0f
commit
25b81795dc
@ -18147,6 +18147,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);
|
||||
|
@ -1029,12 +1029,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