forked from qt-creator/qt-creator
		
	Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
		| @@ -280,8 +280,7 @@ void QmlProfilerEngine::logApplicationMessage(const QString &msg, Utils::OutputF | ||||
|  | ||||
| void QmlProfilerEngine::wrongSetupMessageBox(const QString &errorMessage) | ||||
| { | ||||
|     Core::ICore * const core = Core::ICore::instance(); | ||||
|     QMessageBox *infoBox = new QMessageBox(core->mainWindow()); | ||||
|     QMessageBox *infoBox = new QMessageBox(Core::ICore::mainWindow()); | ||||
|     infoBox->setIcon(QMessageBox::Critical); | ||||
|     infoBox->setWindowTitle(tr("Qt Creator")); | ||||
|     //: %1 is detailed error message | ||||
| @@ -313,8 +312,7 @@ void QmlProfilerEngine::wrongSetupMessageBoxFinished(int button) | ||||
|  | ||||
| void QmlProfilerEngine::showNonmodalWarning(const QString &warningMsg) | ||||
| { | ||||
|     Core::ICore * const core = Core::ICore::instance(); | ||||
|     QMessageBox *noExecWarning = new QMessageBox(core->mainWindow()); | ||||
|     QMessageBox *noExecWarning = new QMessageBox(Core::ICore::mainWindow()); | ||||
|     noExecWarning->setIcon(QMessageBox::Warning); | ||||
|     noExecWarning->setWindowTitle(tr("QML Profiler")); | ||||
|     noExecWarning->setText(warningMsg); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user