forked from qt-creator/qt-creator
		
	Core: Static pattern for ProgressManager, clean up all users
Change-Id: I4af8793ca69a3af9e99baeb7c31dad3864266f91 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
		@@ -40,7 +40,6 @@
 | 
			
		||||
#include "qt4projectmanager/wizards/qtquickapp.h"
 | 
			
		||||
#include "qt4projectmanager/wizards/html5app.h"
 | 
			
		||||
 | 
			
		||||
#include <coreplugin/icore.h>
 | 
			
		||||
#include <coreplugin/icontext.h>
 | 
			
		||||
#include <coreplugin/progressmanager/progressmanager.h>
 | 
			
		||||
#include <coreplugin/documentmanager.h>
 | 
			
		||||
@@ -858,10 +857,8 @@ void Qt4Project::asyncUpdate()
 | 
			
		||||
    Q_ASSERT(!m_asyncUpdateFutureInterface);
 | 
			
		||||
    m_asyncUpdateFutureInterface = new QFutureInterface<void>();
 | 
			
		||||
 | 
			
		||||
    Core::ProgressManager *progressManager = Core::ICore::progressManager();
 | 
			
		||||
 | 
			
		||||
    m_asyncUpdateFutureInterface->setProgressRange(0, 0);
 | 
			
		||||
    progressManager->addTask(m_asyncUpdateFutureInterface->future(), tr("Evaluating"),
 | 
			
		||||
    Core::ProgressManager::addTask(m_asyncUpdateFutureInterface->future(), tr("Evaluating"),
 | 
			
		||||
                             QLatin1String(Constants::PROFILE_EVALUATE));
 | 
			
		||||
    if (debug)
 | 
			
		||||
        qDebug()<<"  adding task";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user