Qt: fixed bug where TListItem DisplayRect doesn't work if have > 1 column.

git-svn-id: trunk@35263 -
This commit is contained in:
zeljko 2012-02-09 10:14:41 +00:00
parent 1cbef20c34
commit 3603901d03

View File

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