mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 15:10:29 +02:00
Qt: implemented case when an TWinControl have csNoFocus in TControlStyle
git-svn-id: trunk@33077 -
This commit is contained in:
parent
ca38c9ebc5
commit
018a1428f5
@ -1804,7 +1804,12 @@ begin
|
||||
|
||||
// set focus policy
|
||||
if (LCLObject <> nil) and not (Self is TQtMainWindow) then
|
||||
setFocusPolicy(QtClickFocus);
|
||||
begin
|
||||
if csNoFocus in LCLObject.ControlStyle then
|
||||
setFocusPolicy(QtNoFocus)
|
||||
else
|
||||
setFocusPolicy(QtClickFocus);
|
||||
end;
|
||||
|
||||
if (csDesigning in LCLObject.ComponentState) and not
|
||||
(Self is TQtMainWindow) and
|
||||
|
Loading…
Reference in New Issue
Block a user