Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Private/TranslationUnit.cpp
bryan sefcik 8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00

29 lines
827 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "TranslationUnit.h"
#include "Misc/AssertionMacros.h"
#include "UObject/NameTypes.h"
#include "UObject/UnrealNames.h"
#include "UObject/UnrealType.h"
UTranslationUnit::UTranslationUnit( const FObjectInitializer& ObjectInitializer )
: Super(ObjectInitializer)
{
}
void UTranslationUnit::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
if (Name == GET_MEMBER_NAME_CHECKED(UTranslationUnit, Translation))
{
// Consider modifying the translation to be an implicit review
HasBeenReviewed = true;
}
TranslationUnitPropertyChangedEvent.Broadcast(Name);
}