mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 09:00:38 +02:00
Qt5,Qt6: Fixed TCustomControl mouse focus behaviour. issue #36006
(cherry picked from commit a9b3e3a8db
)
This commit is contained in:
parent
a6fc0b7613
commit
c455f23ba1
@ -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);
|
||||
|
@ -2227,7 +2227,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