Qt: fixed type cast which caused immediate crash of qtlcl when assigning PtrUInt to WParam.

git-svn-id: trunk@27792 -
This commit is contained in:
zeljko 2010-10-21 11:31:13 +00:00
parent 81a1b83ec1
commit 1bc2a1db55

View File

@ -575,14 +575,14 @@ begin
begin
//WriteLn('KILL: ', OldWidget.LCLObject.ClassName);
Msg.msg := LM_KILLFOCUS;
Msg.wParam := PtrUInt(NewWidget);
Msg.wParam := PtrInt(NewWidget);
OldWidget.DeliverMessage(Msg);
end;
if NewWidget <> nil then
begin
//WriteLn('SET: ', NewWidget.LCLObject.ClassName);
Msg.msg := LM_SETFOCUS;
Msg.wParam := PtrUInt(OldWidget);
Msg.wParam := PtrInt(OldWidget);
NewWidget.DeliverMessage(Msg);
end;
end;