mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 18:55:56 +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
|
begin
|
||||||
if not WSCheckHandleAllocated(ALV, 'ItemSetImage') then
|
if not WSCheckHandleAllocated(ALV, 'ItemSetImage') then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
|
if not Assigned(TListView(ALV).LargeImages) and not
|
||||||
|
Assigned(TListView(ALV).SmallImages) then
|
||||||
|
exit;
|
||||||
|
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
TWI := QtTreeWidget.topLevelItem(AIndex);
|
TWI := QtTreeWidget.topLevelItem(AIndex);
|
||||||
if (TWI <> nil) then
|
if (TWI <> nil) then
|
||||||
|
Loading…
Reference in New Issue
Block a user