mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 05:09:13 +02:00
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:
parent
575e6ac4fd
commit
31adc59c71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user