forked from qt-creator/qt-creator
		
	CppTools/Editor: Use Utils::runAsync
Change-Id: Ifcc2a34e3478eb84f95221b79e39f7a670e6b2e0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
		@@ -365,7 +365,7 @@ void CppFindReferences::findAll_helper(SearchResult *search, Symbol *symbol,
 | 
			
		||||
    SearchResultWindow::instance()->popup(IOutputPane::ModeSwitch | IOutputPane::WithFocus);
 | 
			
		||||
    const WorkingCopy workingCopy = m_modelManager->workingCopy();
 | 
			
		||||
    QFuture<Usage> result;
 | 
			
		||||
    result = QtConcurrent::run(&find_helper, workingCopy, context, symbol);
 | 
			
		||||
    result = Utils::runAsync(find_helper, workingCopy, context, symbol);
 | 
			
		||||
    createWatcher(result, search);
 | 
			
		||||
 | 
			
		||||
    FutureProgress *progress = ProgressManager::addTask(result, tr("Searching for Usages"),
 | 
			
		||||
@@ -669,7 +669,7 @@ void CppFindReferences::findMacroUses(const Macro ¯o, const QString &replace
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    QFuture<Usage> result;
 | 
			
		||||
    result = QtConcurrent::run(&findMacroUses_helper, workingCopy, snapshot, macro);
 | 
			
		||||
    result = Utils::runAsync(findMacroUses_helper, workingCopy, snapshot, macro);
 | 
			
		||||
    createWatcher(result, search);
 | 
			
		||||
 | 
			
		||||
    FutureProgress *progress = ProgressManager::addTask(result, tr("Searching for Usages"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user