| 300 | } |
| 301 | |
| 302 | END_SLATE_FUNCTION_BUILD_OPTIMIZATION |
| 303 | |
| 304 | void SSubsystemBrowserPanel::Tick(const FGeometry& AllotedGeometry, const double InCurrentTime, const float InDeltaTime) |
| 305 | { |
| 306 | TRACE_CPUPROFILER_EVENT_SCOPE(SSubsystemBrowserPanel::Tick); |
| 307 | |
| 308 | SCompoundWidget::Tick(AllotedGeometry, InCurrentTime, InDeltaTime); |
| 309 | |
| 310 | if (bNeedsRefresh) |
| 311 | { |
| 312 | if (!bIsReentrant) |
| 313 | { |
| 314 | Populate(); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | if (bSortDirty) |
| 319 | { |
| 320 | TRACE_CPUPROFILER_EVENT_SCOPE(SSubsystemBrowserPanel::RequestTreeRefresh); |
| 321 | |
| 322 | // SortItems(RootTreeItems); |
| 323 | for (const auto& Pair : TreeItemMap) |
| 324 | { |
| 325 | Pair.Value->bChildrenRequireSort = true; |
| 326 | } |
| 327 | |
| 328 | TreeWidget->RequestTreeRefresh(); |
| 329 | |
| 330 | bSortDirty = false; |
| 331 | } |
| 332 | |
| 333 | if (bNeedsColumnRefresh) |
| 334 | { |
| 335 | TRACE_CPUPROFILER_EVENT_SCOPE(SSubsystemBrowserPanel::RefreshColumns); |
| 336 | |
| 337 | bNeedsColumnRefresh = false; |
| 338 | HeaderRowWidget->RefreshColumns(); |
| 339 | } |
| 340 | |
| 341 | if (bNeedRefreshDetails || PendingSelectionObject.IsSet()) |
| 342 | { |
| 343 | TRACE_CPUPROFILER_EVENT_SCOPE(SSubsystemBrowserPanel::RefreshDetails); |
| 344 | |
| 345 | if (DetailsView.IsValid()) |
| 346 | { |
| 347 | if (PendingSelectionObject.IsSet()) |
| 348 | { |
| 349 | DetailsView->SetObject(PendingSelectionObject.GetValue().Get(), true); |
| 350 | } |
| 351 | else |
| 352 | { |
| 353 | DetailsView->ForceRefresh(); |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | PendingSelectionObject.Reset(); |
| 358 | bNeedRefreshDetails = false; |
| 359 | } |
nothing calls this directly
no test coverage detected