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

Method updateSwitchBuildTypeTable

src/tools/ecode/universallocator.cpp:873–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873void UniversalLocator::updateSwitchBuildTypeTable() {
874 mLocateTable->setModel(
875 openBuildTypeModel( mLocateInput->getText().substr( 4 ).trim().toUtf8() ) );
876 if ( mLocateTable->getModel()->hasChildren() && nullptr != mApp->getProjectBuildManager() ) {
877 ModelIndex idx =
878 mLocateTable->findRowWithText( mApp->getProjectBuildManager()->getConfig().buildType );
879 mLocateTable->getSelection().set( idx.isValid() ? idx
880 : mLocateTable->getModel()->index( 0 ) );
881 }
882 mLocateTable->scrollToTop();
883 mLocateTable->setColumnsVisible( { 0 } );
884}
885
886void UniversalLocator::updateSwitchRunTargetTable() {
887 mLocateTable->setModel(

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