mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 04:13:43 +02:00
Qt5: fixed focusing of tooltip window. csFocus must be included in forms controlState. issue #38707
git-svn-id: trunk@64974 -
This commit is contained in:
parent
07befbecb7
commit
87aecde5f1
@ -996,9 +996,7 @@ begin
|
||||
begin
|
||||
if (csNoFocus in TCustomForm(AWidget.LCLObject).ControlStyle) then
|
||||
begin
|
||||
{$IFDEF HASX11}
|
||||
AWidget.setAttribute(QtWA_X11DoNotAcceptFocus, True);
|
||||
{$ENDIF}
|
||||
Flags := Flags or QtWindowDoesNotAcceptFocus;
|
||||
AWidget.setAttribute(QtWA_ShowWithoutActivating, True);
|
||||
end;
|
||||
AWidget.setWindowFlags(Flags);
|
||||
|
Loading…
Reference in New Issue
Block a user