mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:29:28 +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
|
// set focus policy
|
||||||
if (LCLObject <> nil) and not (Self is TQtMainWindow) then
|
if (LCLObject <> nil) and not (Self is TQtMainWindow) then
|
||||||
|
begin
|
||||||
|
if csNoFocus in LCLObject.ControlStyle then
|
||||||
|
setFocusPolicy(QtNoFocus)
|
||||||
|
else
|
||||||
setFocusPolicy(QtClickFocus);
|
setFocusPolicy(QtClickFocus);
|
||||||
|
end;
|
||||||
|
|
||||||
if (csDesigning in LCLObject.ComponentState) and not
|
if (csDesigning in LCLObject.ComponentState) and not
|
||||||
(Self is TQtMainWindow) and
|
(Self is TQtMainWindow) and
|
||||||
|
Loading…
Reference in New Issue
Block a user