| 584 | } |
| 585 | |
| 586 | void MemorySearchView::loadSearchResults() |
| 587 | { |
| 588 | const u32 numLoaded = m_ui.listSearchResults->count(); |
| 589 | const u32 amountLeftToLoad = m_searchResults.size() - numLoaded; |
| 590 | if (amountLeftToLoad < 1) |
| 591 | return; |
| 592 | |
| 593 | const bool isFirstLoad = numLoaded == 0; |
| 594 | const u32 maxLoadAmount = isFirstLoad ? m_initialResultsLoadLimit : m_numResultsAddedPerLoad; |
| 595 | const u32 numToLoad = amountLeftToLoad > maxLoadAmount ? maxLoadAmount : amountLeftToLoad; |
| 596 | |
| 597 | for (u32 i = 0; i < numToLoad; i++) |
| 598 | { |
| 599 | const u32 address = m_searchResults.at(numLoaded + i).getAddress(); |
| 600 | QListWidgetItem* item = new QListWidgetItem(QtUtils::FilledQStringFromValue(address, 16)); |
| 601 | item->setData(Qt::UserRole, address); |
| 602 | m_ui.listSearchResults->addItem(item); |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | SearchType MemorySearchView::getCurrentSearchType() |
| 607 | { |
nothing calls this directly
no test coverage detected