Add a message if no items match the search in debugger

#jira UE-138973
#rb phillip.kavan
#preflight 61e720e0b56c33b8ecf4a0d2

#ROBOMERGE-AUTHOR: benjamin.fox
#ROBOMERGE-SOURCE: CL 18646837 in //UE5/Release-5.0/... via CL 18646881 via CL 18646912
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)

[CL 18648365 by benjamin fox in ue5-main branch]
This commit is contained in:
benjamin fox
2022-01-18 16:46:05 -05:00
parent b2767f1352
commit 2becc6d7c9
2 changed files with 9 additions and 0 deletions

View File

@@ -2968,6 +2968,7 @@ void SKismetDebugTreeView::Construct(const FArguments& InArgs)
bFilteredItemsDirty = false;
bInDebuggerTab = InArgs._InDebuggerTab;
SearchString = MakeShared<FString>();
SearchMessageItem = MakeMessageItem(LOCTEXT("NoItemsMatchSearch", "No entries match the search text").ToString());
ChildSlot
[
@@ -3080,6 +3081,11 @@ void SKismetDebugTreeView::UpdateFilteredItems()
}
}
if (FilteredTreeRoots.IsEmpty())
{
FilteredTreeRoots.Add(SearchMessageItem);
}
TreeView->RequestTreeRefresh();
}

View File

@@ -222,6 +222,9 @@ private:
bool bFilteredItemsDirty;
/** message to display when no entries in the tree match the search text */
FDebugTreeItemPtr SearchMessageItem;
/** whether this tree is held within the blueprint debugger tab, used to hide context menu options */
bool bInDebuggerTab;
public: