mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:39:15 +02:00
lcl: return header section text as display name if available
git-svn-id: trunk@23010 -
This commit is contained in:
parent
0e2a102350
commit
29154135e7
@ -2775,6 +2775,8 @@ type
|
|||||||
procedure SetWidth(Value: Integer);
|
procedure SetWidth(Value: Integer);
|
||||||
procedure SetImageIndex(const Value: TImageIndex);
|
procedure SetImageIndex(const Value: TImageIndex);
|
||||||
procedure CheckConstraints;
|
procedure CheckConstraints;
|
||||||
|
protected
|
||||||
|
function GetDisplayName: string; override;
|
||||||
public
|
public
|
||||||
constructor Create(ACollection: TCollection); override;
|
constructor Create(ACollection: TCollection); override;
|
||||||
procedure Assign(Source: TPersistent); override;
|
procedure Assign(Source: TPersistent); override;
|
||||||
|
@ -594,6 +594,14 @@ begin
|
|||||||
FWidth := FMaxWidth;
|
FWidth := FMaxWidth;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function THeaderSection.GetDisplayName: string;
|
||||||
|
begin
|
||||||
|
if Length(Text) = 0 then
|
||||||
|
Result := inherited GetDisplayName
|
||||||
|
else
|
||||||
|
Result := Text;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor THeaderSection.Create(ACollection: TCollection);
|
constructor THeaderSection.Create(ACollection: TCollection);
|
||||||
begin
|
begin
|
||||||
inherited Create(ACollection);
|
inherited Create(ACollection);
|
||||||
|
Loading…
Reference in New Issue
Block a user