mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-28 15:42:43 +02:00
Qt: remove a useless test for AWinControl.HandleAllocated in TQtWSWinControl.GetPreferredSize.
git-svn-id: trunk@43624 -
This commit is contained in:
parent
1678af5484
commit
ff965d788d
@ -278,9 +278,8 @@ end;
|
||||
class procedure TQtWSWinControl.GetPreferredSize(const AWinControl: TWinControl;
|
||||
var PreferredWidth, PreferredHeight: integer; WithThemeSpace: Boolean);
|
||||
begin
|
||||
if AWinControl.HandleAllocated then
|
||||
TQtWidget(AWinControl.Handle).PreferredSize(PreferredWidth,
|
||||
PreferredHeight, WithThemeSpace);
|
||||
Assert(AWinControl.HandleAllocated, 'GetPreferredSize: Handle not allocated');
|
||||
TQtWidget(AWinControl.Handle).PreferredSize(PreferredWidth, PreferredHeight, WithThemeSpace);
|
||||
end;
|
||||
|
||||
class function TQtWSWinControl.GetText(const AWinControl: TWinControl;
|
||||
|
Loading…
Reference in New Issue
Block a user