mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-25 04:17:22 +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;
|
FCurrentVisible := False;
|
||||||
FCurrentClippedWidth := w;
|
FCurrentClippedWidth := w;
|
||||||
FCurrentPosX := x - 1;
|
FCurrentPosX := x - 1;
|
||||||
{$IFDEF LCLQT}
|
|
||||||
SetCaretRespondToFocus(Handle, True); // See bug 17173
|
|
||||||
{$ELSE}
|
|
||||||
SetCaretRespondToFocus(Handle, False); // Only for GTK
|
SetCaretRespondToFocus(Handle, False); // Only for GTK
|
||||||
{$ENDIF}
|
|
||||||
end;
|
end;
|
||||||
if (x <> FCurrentPosX) or (y <> FCurrentPosY) then begin
|
if (x <> FCurrentPosX) or (y <> FCurrentPosY) then begin
|
||||||
{$IFDeF SynCaretDebug}
|
{$IFDeF SynCaretDebug}
|
||||||
@ -1798,9 +1794,6 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if LCLIntf.ShowCaret(Handle) then
|
if LCLIntf.ShowCaret(Handle) then
|
||||||
FCurrentVisible := True;
|
FCurrentVisible := True;
|
||||||
{$IFDEF LCLQT}
|
|
||||||
SetCaretPosEx(Handle, x, y);
|
|
||||||
{$ENDIF}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user