mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 04:48:36 +02:00
Qt5,Qt6: fixed QtComboBox sorted property. issue #41502
(cherry picked from commit 00a355408e
)
Co-authored-by: zeljan1 <zeljko@holobit.hr>
This commit is contained in:
parent
87aa99d601
commit
d5ec9d7a61
@ -485,8 +485,7 @@ procedure TQtComboStrings.SetSorted(AValue: Boolean);
|
||||
begin
|
||||
if FSorted=AValue then Exit;
|
||||
FSorted:=AValue;
|
||||
if FSorted then
|
||||
Sort;
|
||||
inherited Sorted:=FSorted;
|
||||
end;
|
||||
|
||||
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
||||
|
@ -488,8 +488,7 @@ procedure TQtComboStrings.SetSorted(AValue: Boolean);
|
||||
begin
|
||||
if FSorted=AValue then Exit;
|
||||
FSorted:=AValue;
|
||||
if FSorted then
|
||||
Sort;
|
||||
inherited Sorted:=FSorted;
|
||||
end;
|
||||
|
||||
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
||||
|
Loading…
Reference in New Issue
Block a user