mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 11:09:09 +02:00
Qt: fixed result of TQtWidgetSet.EnableWindow()
git-svn-id: trunk@27548 -
This commit is contained in:
parent
f80a1aaa04
commit
71bf9bda93
@ -1350,9 +1350,12 @@ begin
|
||||
{$ifdef VerboseQtWinAPI}
|
||||
WriteLn('[WinAPI EnableWindow] ');
|
||||
{$endif}
|
||||
|
||||
Result := TQtWidget(hwnd).getEnabled;
|
||||
TQtWidget(hWnd).setEnabled(bEnable);
|
||||
Result := False;
|
||||
if HWND <> 0 then
|
||||
begin
|
||||
Result := not TQtWidget(hwnd).getEnabled;
|
||||
TQtWidget(hWnd).setEnabled(bEnable);
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user