mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:19:24 +02:00
Qt: fixed mouse focus behaviour of TQtCustomControl. issue #36006,#40615
This commit is contained in:
parent
1898a84c34
commit
eade19d2bd
@ -2119,7 +2119,7 @@ begin
|
|||||||
else
|
else
|
||||||
setFocusPolicy(QtNoFocus);
|
setFocusPolicy(QtNoFocus);
|
||||||
end else
|
end else
|
||||||
if (Self is TQtTabWidget) then
|
if (Self is TQtTabWidget) or (Self is TQtCustomControl) then
|
||||||
setFocusPolicy(QtTabFocus)
|
setFocusPolicy(QtTabFocus)
|
||||||
else
|
else
|
||||||
setFocusPolicy(QtClickFocus);
|
setFocusPolicy(QtClickFocus);
|
||||||
|
Loading…
Reference in New Issue
Block a user