MCPcopy Create free account
hub / github.com/SpartanJ/eepp / updateSwitchRunTargetTable

Method updateSwitchRunTargetTable

src/tools/ecode/universallocator.cpp:886–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886void UniversalLocator::updateSwitchRunTargetTable() {
887 mLocateTable->setModel(
888 openRunTargetModel( mLocateInput->getText().substr( 4 ).trim().toUtf8() ) );
889 if ( mLocateTable->getModel()->hasChildren() && nullptr != mApp->getProjectBuildManager() ) {
890 ModelIndex idx =
891 mLocateTable->findRowWithText( mApp->getProjectBuildManager()->getConfig().runName );
892 mLocateTable->getSelection().set( idx.isValid() ? idx
893 : mLocateTable->getModel()->index( 0 ) );
894 }
895 mLocateTable->scrollToTop();
896 mLocateTable->setColumnsVisible( { 0 } );
897}
898
899void UniversalLocator::showSwitchFileType() {
900 showBar();

Callers

nothing calls this directly

Calls 15

toUtf8Method · 0.80
trimMethod · 0.80
substrMethod · 0.80
getConfigMethod · 0.80
scrollToTopMethod · 0.80
setColumnsVisibleMethod · 0.80
setModelMethod · 0.45
getTextMethod · 0.45
hasChildrenMethod · 0.45
getModelMethod · 0.45
findRowWithTextMethod · 0.45

Tested by

no test coverage detected