mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 12:39:20 +02:00
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:
parent
07f06787ff
commit
7a7e45b610
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user