mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 21:00:43 +02:00
Qt: clearFocus only on IQtEdit interface.
git-svn-id: trunk@17278 -
This commit is contained in:
parent
dfbd3b0c8c
commit
9a0a1e6215
@ -4325,6 +4325,8 @@ end;
|
||||
|
||||
------------------------------------------------------------------------------}
|
||||
function TQtWidgetSet.SetFocus(hWnd: HWND): HWND;
|
||||
var
|
||||
QtEdit: IQtEdit;
|
||||
begin
|
||||
if hwnd<>0 then
|
||||
begin
|
||||
@ -4338,7 +4340,8 @@ begin
|
||||
{$IFDEF UNIX}
|
||||
if (Result <> 0) and (Result <> hWnd) and not
|
||||
((TQtWidget(Hwnd) is TQtMainWindow) or
|
||||
(TQtWidget(Result) is TQtMainWindow))
|
||||
(TQtWidget(Result) is TQtMainWindow) and
|
||||
Supports(TQtWidget(Result), IQtEdit, QtEdit))
|
||||
then
|
||||
QWidget_clearFocus(TQtWidget(Result).Widget);
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user