mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
qt intf: added verbosity
git-svn-id: trunk@30743 -
This commit is contained in:
parent
962a7942fb
commit
82f5d6ef1c
@ -28,6 +28,8 @@ unit QtCaret;
|
||||
|
||||
interface
|
||||
|
||||
{off $DEFINE VerboseQtCaret}
|
||||
|
||||
{$I qtdefines.inc}
|
||||
|
||||
uses
|
||||
@ -377,6 +379,9 @@ begin
|
||||
{$ENDIF}
|
||||
if FWidget <> AWidget then
|
||||
begin
|
||||
{$IFDEF VerboseQtCaret}
|
||||
writeln('TEmulatedCaret.Show Widget changed IsValid=',IsValid);
|
||||
{$ENDIF}
|
||||
Hide;
|
||||
SetWidget(AWidget);
|
||||
if FCaretDirty and (AWidget <> nil) then
|
||||
@ -399,6 +404,7 @@ begin
|
||||
Result := IsValid;
|
||||
FVisible := Result;
|
||||
SetPos(FPos);
|
||||
//writeln('TEmulatedCaret.Show END Result=',Result,' IsValid=',IsValid,' Handle=',QtWidgetSet.IsValidHandle(HWND(FWidget)),' FPixmap=',FPixmap<>nil,' FWidget.Context=',FWidget.Context<>0);
|
||||
end;
|
||||
|
||||
function TEmulatedCaret.Hide: Boolean;
|
||||
@ -418,7 +424,7 @@ procedure TEmulatedCaret.SetPos(const Value: TQtPoint);
|
||||
begin
|
||||
{$IFDEF VerboseQtCaret}
|
||||
writeln('TEmulatedCaret.SetPos FWidget=',dbghex(PtrUInt(FWidget)),' X=',Value.X,
|
||||
' Y=',Value.Y,' OldX=',FPos.X,' OldY=',FPos.Y);
|
||||
' Y=',Value.Y,' OldX=',FPos.X,' OldY=',FPos.Y,' Dirty=',FCaretDirty);
|
||||
{$ENDIF}
|
||||
|
||||
if not QtWidgetSet.IsValidHandle(HWND(FWidget)) or (FWidget.Widget = nil) then
|
||||
|
Loading…
Reference in New Issue
Block a user