Skip to content

Commit

Permalink
Merge pull request #1 from DoubleDeez/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjofri authored Oct 6, 2023
2 parents ddba86f + 67fab1c commit 278737f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Source/SlateIconBrowser/Private/SlateIconBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
#include "SlateIconBrowser.h"

#include "EditorStyleSet.h"
#include "Framework/Application/MenuStack.h"
#include "Framework/Application/SlateApplication.h"
#include "SlateIconBrowserStyle.h"
#include "HAL/PlatformApplicationMisc.h"
#include "Layout/WidgetPath.h"
#include "LevelEditor.h"
#include "UMGStyle.h"
#include "Widgets/Docking/SDockTab.h"
Expand All @@ -14,6 +17,8 @@
#include "Framework/Notifications/NotificationManager.h"
#include "Styling/SlateStyleRegistry.h"
#include "Styling/UMGCoreStyle.h"
#include "Widgets/Input/SComboBox.h"
#include "Widgets/Input/SEditableTextBox.h"
#include "Widgets/Layout/SExpandableArea.h"
#include "Widgets/Layout/SSeparator.h"
#include "Widgets/Notifications/SNotificationList.h"
Expand Down Expand Up @@ -123,7 +128,7 @@ TSharedRef<SDockTab> FSlateIconBrowserModule::OnSpawnPluginTab(const FSpawnTabAr
return SNew(STextBlock).Text(FText::FromName(*InItem.Get()));
})
[
SNew(STextBlock).Text_Lambda([=]{ return FText::FromName(GetConfig()->SelectedStyle); })
SNew(STextBlock).Text_Lambda([this]{ return FText::FromName(GetConfig()->SelectedStyle); })
]
]
+SHorizontalBox::Slot()
Expand All @@ -149,7 +154,7 @@ TSharedRef<SDockTab> FSlateIconBrowserModule::OnSpawnPluginTab(const FSpawnTabAr
.OnGenerateRow_Raw(this, &FSlateIconBrowserModule::GenerateRow)
.ListItemsSource(&Lines)
.SelectionMode(ESelectionMode::Single)
.Visibility_Lambda([=]
.Visibility_Lambda([this]
{
return Lines.IsEmpty() ? EVisibility::Collapsed : EVisibility::Visible;
})
Expand All @@ -159,7 +164,7 @@ TSharedRef<SDockTab> FSlateIconBrowserModule::OnSpawnPluginTab(const FSpawnTabAr
[
SNew(SBox)
.HAlign(EHorizontalAlignment::HAlign_Center)
.Visibility_Lambda([=]
.Visibility_Lambda([this]
{
return Lines.IsEmpty() ? EVisibility::Visible : EVisibility::Collapsed;
})
Expand Down
6 changes: 6 additions & 0 deletions Source/SlateIconBrowser/Public/SlateIconBrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
#pragma once

#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "SlateIconBrowserUserSettings.h"
#include "Modules/ModuleManager.h"

class FToolBarBuilder;
class FMenuBuilder;
class ITableRow;
class STableViewBase;
class STextBlock;
template<typename T> class SListView;
template<typename T> class SComboBox;

class FSlateIconBrowserModule : public IModuleInterface
{
Expand Down

0 comments on commit 278737f

Please sign in to comment.