mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 13:37:22 +01:00
Qt: fixed qt caret respondtofocus behaviour. fixes #17173
git-svn-id: trunk@27193 -
This commit is contained in:
parent
bdebfcb3e7
commit
31238a6951
@ -398,6 +398,7 @@ begin
|
||||
end;
|
||||
Result := IsValid;
|
||||
FVisible := Result;
|
||||
SetPos(FPos);
|
||||
end;
|
||||
|
||||
function TEmulatedCaret.Hide: Boolean;
|
||||
@ -435,7 +436,9 @@ begin
|
||||
FPos := Value;
|
||||
FTimer.Enabled := False;
|
||||
FVisibleState := FWidget.Context = 0;
|
||||
if RespondToFocus and not FCaretDirty then
|
||||
{$note remove complete property RespondToFocus after testing}
|
||||
// if RespondToFocus and not FCaretDirty then
|
||||
if not FCaretDirty then
|
||||
UpdateCaret(True);
|
||||
if FCaretDirty then
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user