Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/ContentSourceDragDropOp.cpp
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

29 lines
909 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "ContentSourceDragDropOp.h"
#include "ViewModels/ContentSourceViewModel.h"
TSharedRef<FContentSourceDragDropOp> FContentSourceDragDropOp::CreateShared(TSharedPtr<FContentSourceViewModel> InContentSource)
{
TSharedPtr<FContentSourceDragDropOp> DragDropOp = MakeShareable(new FContentSourceDragDropOp(InContentSource));
DragDropOp->MouseCursor = EMouseCursor::GrabHandClosed;
DragDropOp->Construct();
return DragDropOp.ToSharedRef();
}
FContentSourceDragDropOp::FContentSourceDragDropOp(TSharedPtr<FContentSourceViewModel> InContentSource)
{
ContentSource = InContentSource;
}
TSharedPtr<SWidget> FContentSourceDragDropOp::GetDefaultDecorator() const
{
return SNew(SImage)
.Image(ContentSource->GetIconBrush().Get());
}
TSharedPtr<FContentSourceViewModel> FContentSourceDragDropOp::GetContentSource()
{
return ContentSource;
}