You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixed up the details panel name area to be aware of in world component editing. Fixed up usage of the details panel name area to use new enum based usage flag for name areas [CL 2419254 by Ben Marsh in Main branch]
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DeviceProfileEditorPCH.h"
|
|
#include "DeviceProfiles/DeviceProfile.h"
|
|
#include "PropertyEditorModule.h"
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "DeviceProfileEditorSingleProfileView"
|
|
|
|
|
|
void SDeviceProfileEditorSingleProfileView::Construct(const FArguments& InArgs, TWeakObjectPtr< UDeviceProfile > InDeviceProfileToView)
|
|
{
|
|
EditingProfile = InDeviceProfileToView;
|
|
|
|
// initialize settings view
|
|
FDetailsViewArgs DetailsViewArgs;
|
|
{
|
|
DetailsViewArgs.bAllowSearch = false;
|
|
DetailsViewArgs.bSearchInitialKeyFocus = false;
|
|
DetailsViewArgs.bHideSelectionTip = true;
|
|
DetailsViewArgs.bLockable = false;
|
|
DetailsViewArgs.NameAreaSettings = FDetailsViewArgs::HideNameArea;
|
|
DetailsViewArgs.bUpdatesFromSelection = false;
|
|
DetailsViewArgs.bShowOptions = false;
|
|
}
|
|
|
|
SettingsView = FModuleManager::GetModuleChecked<FPropertyEditorModule>("PropertyEditor").CreateDetailView(DetailsViewArgs);
|
|
SettingsView->SetObject(EditingProfile.Get());
|
|
|
|
ChildSlot
|
|
[
|
|
SNew(SBorder)
|
|
.BorderImage(FEditorStyle::GetBrush("NoBorder"))
|
|
[
|
|
SettingsView.ToSharedRef()
|
|
]
|
|
];
|
|
}
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|