| 871 | } |
| 872 | |
| 873 | void 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 | |
| 886 | void UniversalLocator::updateSwitchRunTargetTable() { |
| 887 | mLocateTable->setModel( |
nothing calls this directly
no test coverage detected