MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / SelectPrevRow

Method SelectPrevRow

Source/FlowEditor/Private/Asset/SFlowDiff.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void FlowDiffUtils::SelectPrevRow(SListView<TSharedPtr<FDiffSingleResult>>& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource)
64{
65 const int32 CurrentIndex = GetCurrentIndex(ListView, ListViewSource);
66 const int32 PrevIndex = CurrentIndex - 1;
67 if (ListViewSource.IsValidIndex(PrevIndex))
68 {
69 ListView.SetSelection(ListViewSource[PrevIndex]);
70 }
71}
72
73bool FlowDiffUtils::HasNextDifference(const SListView<TSharedPtr<FDiffSingleResult>>& ListView, const TArray<TSharedPtr<FDiffSingleResult>>& ListViewSource)
74{

Callers

nothing calls this directly

Calls 1

GetCurrentIndexFunction · 0.85

Tested by

no test coverage detected