Qt: remove a useless test for AWinControl.HandleAllocated in TQtWSWinControl.GetPreferredSize.

git-svn-id: trunk@43624 -
This commit is contained in:
juha 2013-12-31 20:58:10 +00:00
parent 1678af5484
commit ff965d788d

View File

@ -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;