mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-19 22:29:37 +01:00
SynEdit: Caret, removed QT workarounds
git-svn-id: trunk@27201 -
This commit is contained in:
parent
987280bfe5
commit
254183e65e
@ -1777,11 +1777,7 @@ begin
|
||||
FCurrentVisible := False;
|
||||
FCurrentClippedWidth := w;
|
||||
FCurrentPosX := x - 1;
|
||||
{$IFDEF LCLQT}
|
||||
SetCaretRespondToFocus(Handle, True); // See bug 17173
|
||||
{$ELSE}
|
||||
SetCaretRespondToFocus(Handle, False); // Only for GTK
|
||||
{$ENDIF}
|
||||
end;
|
||||
if (x <> FCurrentPosX) or (y <> FCurrentPosY) then begin
|
||||
{$IFDeF SynCaretDebug}
|
||||
@ -1798,9 +1794,6 @@ begin
|
||||
{$ENDIF}
|
||||
if LCLIntf.ShowCaret(Handle) then
|
||||
FCurrentVisible := True;
|
||||
{$IFDEF LCLQT}
|
||||
SetCaretPosEx(Handle, x, y);
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user