mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 02:48:31 +02:00
Qt5,Qt6: Fixed TCustomControl mouse focus behaviour. issue #36006
This commit is contained in:
parent
7f95150461
commit
a9b3e3a8db
@ -2229,7 +2229,7 @@ begin
|
||||
else
|
||||
setFocusPolicy(QtNoFocus);
|
||||
end else
|
||||
if (Self is TQtTabWidget) then
|
||||
if (Self is TQtTabWidget) or (Self is TQtCustomControl{issue #36006}) then
|
||||
setFocusPolicy(QtTabFocus)
|
||||
else
|
||||
setFocusPolicy(QtClickFocus);
|
||||
|
@ -2229,7 +2229,7 @@ begin
|
||||
else
|
||||
setFocusPolicy(QtNoFocus);
|
||||
end else
|
||||
if (Self is TQtTabWidget) then
|
||||
if (Self is TQtTabWidget) or (Self is TQtCustomControl{issue #36006}) then
|
||||
setFocusPolicy(QtTabFocus)
|
||||
else
|
||||
setFocusPolicy(QtClickFocus);
|
||||
|
Loading…
Reference in New Issue
Block a user