MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / onSearchTypeChanged

Method onSearchTypeChanged

pcsx2-qt/Debugger/Memory/MemorySearchView.cpp:635–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void MemorySearchView::onSearchTypeChanged(int newIndex)
636{
637 if (newIndex < 4)
638 m_ui.chkSearchHex->setEnabled(true);
639 else
640 m_ui.chkSearchHex->setEnabled(false);
641
642 // Clear existing search results when the comparison type changes
643 if (m_searchResults.size() > 0 && (int)(m_searchResults.front().getType()) != newIndex)
644 {
645 m_searchResults.clear();
646 m_ui.btnSearch->setDisabled(false);
647 m_ui.btnFilterSearch->setDisabled(true);
648 }
649 updateSearchComparisonSelections();
650}
651
652void MemorySearchView::onSearchComparisonChanged(int newValue)
653{

Callers

nothing calls this directly

Calls 4

getTypeMethod · 0.80
sizeMethod · 0.45
frontMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected