| 846 | } |
| 847 | |
| 848 | void GlobalSearchController::onLoadDone( const Variant& lineNum, const Variant& colNum ) { |
| 849 | if ( mSplitter->curEditorExistsAndFocused() && lineNum.isValid() && colNum.isValid() && |
| 850 | lineNum.is( Variant::Type::Int64 ) && colNum.is( Variant::Type::Int64 ) ) { |
| 851 | TextPosition pos{ lineNum.asInt64(), colNum.asInt64() }; |
| 852 | mSplitter->getCurEditor()->getDocument().setSelection( pos ); |
| 853 | mSplitter->getCurEditor()->goToLine( pos ); |
| 854 | mSplitter->addCurrentPositionToNavigationHistory(); |
| 855 | hideGlobalSearchBar(); |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | void GlobalSearchController::initGlobalSearchTree( UITreeViewGlobalSearch* searchTree ) { |
| 860 | searchTree->addClass( "search_tree" ); |
nothing calls this directly
no test coverage detected