Qt: do not set sizehint of QTreeWidgetItem in autosized column if iconsize = 0.related to issue #27696

git-svn-id: trunk@48508 -
This commit is contained in:
zeljko 2015-03-26 15:32:38 +00:00
parent 575e6ac4fd
commit 31adc59c71

View File

@ -14157,10 +14157,11 @@ var
R: TRect;
ATextWidth: Integer;
AMargin: Integer;
i: Integer;
ASizeHint: TSize;
begin
Result := False;
if AIconSize = 0 then
exit;
R := measureText(AText, 0);
ATextWidth := R.Right - R.Left;
if AIconSize > 0 then