You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- created FDetailsNameWidgetOverrideCustomization and function to get it on FDetailsViewPrivate, SDetailsView and FDetailsViewArgs to provide a customization that can override any Name widget - FDetailsNameWidgetOverrideCustomization can override any non-nested property, using the CustomizeName function which takes a TSharedRef<SWidget> that is the name widget that would show without the new customization, and the FPropertyPath in order to be able to tell what properties to override. - In SDetalsSingleItemRow added GetNameWidget to use the FDetailsNameWidgetOverrideCustomization to provide the name widget, if it has been provided #jira UE-201379 #rb jordan.hoffmann, logan.buchy [CL 31134537 by karen jirak in ue5-main branch]
15 lines
412 B
C++
15 lines
412 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DetailsNameWidgetOverrideCustomization.h"
|
|
#include "PropertyPath.h"
|
|
#include "Widgets/SWidget.h"
|
|
|
|
FDetailsNameWidgetOverrideCustomization::FDetailsNameWidgetOverrideCustomization()
|
|
{
|
|
}
|
|
|
|
TSharedRef<SWidget> FDetailsNameWidgetOverrideCustomization::CustomizeName(TSharedRef<SWidget> InnerNameContent, FPropertyPath& Path)
|
|
{
|
|
return InnerNameContent;
|
|
}
|