Qt: fixed compilation when -dVerboseFocus enabled

git-svn-id: trunk@33361 -
This commit is contained in:
zeljko 2011-11-06 08:04:41 +00:00
parent d0fb7f4dbf
commit 29cfa624f6

View File

@ -2866,6 +2866,9 @@ end;
function TQtWidgetSet.GetFocus: HWND;
var
W: QWidgetH;
{$ifdef VerboseFocus}
Obj: TQtWidget;
{$endif}
begin
Result := 0;
W := QApplication_FocusWidget();
@ -2873,7 +2876,8 @@ begin
begin
Result := HwndFromWidgetH(W);
{$ifdef VerboseFocus}
Write('TQtWidgetSet.GetFocus: WidgetH=',dbghex(ptrint(WidgetH)), ' QtWidget=', dbgsname(Obj));
Obj := TQtWidget(Result);
Write('TQtWidgetSet.GetFocus: WidgetH=',dbghex(ptruint(W)), ' QtWidget=', dbgsname(Obj));
if Obj<>nil then
WriteLn(' LclObject=', dbgsname(Obj.LCLObject))
else