mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:21:35 +02:00
Qt: fixed bug where TListItem DisplayRect doesn't work if have > 1 column.
git-svn-id: trunk@35263 -
This commit is contained in:
parent
1cbef20c34
commit
3603901d03
@ -1541,7 +1541,7 @@ begin
|
||||
begin
|
||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||
TWI := QtTreeWidget.topLevelItem(AIndex);
|
||||
if QTreeWidgetItem_childCount(TWI) > 0 then
|
||||
if (QTreeWidgetItem_childCount(TWI) > 0) and (ASubItem > 0) then
|
||||
Result := QtTreeWidget.visualItemRect(QTreeWidgetItem_child(TWI, ASubItem))
|
||||
else
|
||||
Result := QtTreeWidget.visualItemRect(TWI);
|
||||
|
Loading…
Reference in New Issue
Block a user