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

Method updateSwitchBuildTable

src/tools/ecode/universallocator.cpp:789–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789void UniversalLocator::updateSwitchBuildTable() {
790 mLocateTable->setModel( openBuildModel( mLocateInput->getText().substr( 3 ).trim().toUtf8() ) );
791 if ( mLocateTable->getModel()->hasChildren() ) {
792 ModelIndex idx =
793 mLocateTable->findRowWithText( mApp->getProjectBuildManager()->getConfig().buildName );
794 mLocateTable->getSelection().set( idx.isValid() ? idx
795 : mLocateTable->getModel()->index( 0 ) );
796 }
797 mLocateTable->scrollToTop();
798}
799
800void UniversalLocator::showSwitchBuildType() {
801 showBar();

Callers

nothing calls this directly

Calls 15

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

Tested by

no test coverage detected