mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 00:46:01 +02:00
Qt: TQtWSCustomListView optimization, 10% faster insert.
git-svn-id: trunk@24312 -
This commit is contained in:
parent
87862a4a71
commit
cbb925a0d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user