mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
Qt: faster Sort() routines in qtprivate.
git-svn-id: trunk@16417 -
This commit is contained in:
parent
bdff789799
commit
08b2573645
@ -455,10 +455,7 @@ begin
|
||||
inherited Sort;
|
||||
|
||||
for I := 0 to Count - 1 do
|
||||
begin
|
||||
FOwner.removeItem(I);
|
||||
FOwner.insertItem(I, Strings[I]);
|
||||
end;
|
||||
FOwner.setItemText(I, Strings[I]);
|
||||
end;
|
||||
|
||||
{ TQtListStrings }
|
||||
@ -520,10 +517,7 @@ begin
|
||||
inherited Sort;
|
||||
|
||||
for I := 0 to Count - 1 do
|
||||
begin
|
||||
FOwner.removeItem(I);
|
||||
FOwner.insertItem(I, Strings[I]);
|
||||
end;
|
||||
FOwner.setItemText(I, Strings[I]);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user