Qt: Fixed focus problems (eg. OnExit() events from TCustomEdit etc.), now it is just like in VCL.

git-svn-id: trunk@16280 -
This commit is contained in:
zeljko 2008-08-28 08:45:21 +00:00
parent 07f06787ff
commit 7a7e45b610

View File

@ -4168,6 +4168,8 @@ begin
WriteLn('********* TQtWidgetSet.SetFocus INIT focusing ', TQtWidget(hwnd).lclobject.name);
{$endif}
result := GetFocus;
if Result <> 0 then
QWidget_clearFocus(TQtWidget(Result).Widget);
TQtWidget(hWnd).setFocus;
{$ifdef VerboseFocus}
DebugLn('********* TQtWidgetSet.SetFocus END was %x now is %x',[result,hwnd]);