mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:30:22 +02:00
made fpc RTTI property names nicer from GongYu
git-svn-id: trunk@4798 -
This commit is contained in:
parent
aff3164655
commit
48284b663a
@ -1952,6 +1952,15 @@ end;
|
||||
function TPropertyEditor.GetName:shortstring;
|
||||
begin
|
||||
Result:=FPropList^[0].PropInfo^.Name;
|
||||
{$IFDEF Ver1_0}
|
||||
// the 1.0.x fpc has only uppercase RTTI
|
||||
// -> make it a little bit nicer
|
||||
Result:=lowercase(Result);
|
||||
if length(Result)>0 then
|
||||
Result[1]:=upcase(Result[1]);
|
||||
if (length(Result)>2) and (Result[1]='O') and (Result[2]='n') then
|
||||
Result[3]:=upcase(Result[3]);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TPropertyEditor.GetOrdValue:Longint;
|
||||
|
Loading…
Reference in New Issue
Block a user