mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 12:00:15 +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);
|
WriteLn('********* TQtWidgetSet.SetFocus INIT focusing ', TQtWidget(hwnd).lclobject.name);
|
||||||
{$endif}
|
{$endif}
|
||||||
result := GetFocus;
|
result := GetFocus;
|
||||||
|
if Result <> 0 then
|
||||||
|
QWidget_clearFocus(TQtWidget(Result).Widget);
|
||||||
TQtWidget(hWnd).setFocus;
|
TQtWidget(hWnd).setFocus;
|
||||||
{$ifdef VerboseFocus}
|
{$ifdef VerboseFocus}
|
||||||
DebugLn('********* TQtWidgetSet.SetFocus END was %x now is %x',[result,hwnd]);
|
DebugLn('********* TQtWidgetSet.SetFocus END was %x now is %x',[result,hwnd]);
|
||||||
|
Loading…
Reference in New Issue
Block a user