mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 16:19:13 +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
|
begin
|
||||||
if FSorted=AValue then Exit;
|
if FSorted=AValue then Exit;
|
||||||
FSorted:=AValue;
|
FSorted:=AValue;
|
||||||
if FSorted then
|
inherited Sorted:=FSorted;
|
||||||
Sort;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
||||||
|
@ -488,8 +488,7 @@ procedure TQtComboStrings.SetSorted(AValue: Boolean);
|
|||||||
begin
|
begin
|
||||||
if FSorted=AValue then Exit;
|
if FSorted=AValue then Exit;
|
||||||
FSorted:=AValue;
|
FSorted:=AValue;
|
||||||
if FSorted then
|
inherited Sorted:=FSorted;
|
||||||
Sort;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
procedure TQtComboStrings.Put(Index: Integer; const S: string);
|
||||||
|
Loading…
Reference in New Issue
Block a user