Qt: TQtWSCustomListView optimization, 10% faster insert.

git-svn-id: trunk@24312 -
This commit is contained in:
zeljko 2010-03-31 13:59:49 +00:00
parent 87862a4a71
commit cbb925a0d4

View File

@ -987,6 +987,11 @@ var
begin
if not WSCheckHandleAllocated(ALV, 'ItemSetImage') then
Exit;
if not Assigned(TListView(ALV).LargeImages) and not
Assigned(TListView(ALV).SmallImages) then
exit;
QtTreeWidget := TQtTreeWidget(ALV.Handle);
TWI := QtTreeWidget.topLevelItem(AIndex);
if (TWI <> nil) then