forked from qt-creator/qt-creator
qmake: Do not bring general messages pane to front
- message(): Print to general messages and blink - warning(), error(): create item in Issues pane - parse error and other errors: create item in Issues pane Task-number: QTCREATORBUG-24430 Change-Id: I6b37cef0b9e53e2207341bd179e2c60a40da9ee0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -646,6 +646,7 @@ bool QmakeBuildSystem::wasEvaluateCanceled()
|
||||
|
||||
void QmakeBuildSystem::asyncUpdate()
|
||||
{
|
||||
TaskHub::clearTasks(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
|
||||
setParseDelay(UPDATE_INTERVAL);
|
||||
TRACE("");
|
||||
|
||||
@@ -671,7 +672,7 @@ void QmakeBuildSystem::asyncUpdate()
|
||||
"have a valid Qt.")
|
||||
.arg(project()->displayName(), k->displayName())
|
||||
: tr("Cannot parse project \"%1\": No kit selected.").arg(project()->displayName());
|
||||
proFileParseError(errorMessage);
|
||||
proFileParseError(errorMessage, project()->projectFilePath());
|
||||
m_asyncUpdateFutureInterface.reportCanceled();
|
||||
m_asyncUpdateFutureInterface.reportFinished();
|
||||
return;
|
||||
@@ -761,9 +762,9 @@ FilePath QmakeBuildSystem::buildDir(const FilePath &proFilePath) const
|
||||
return FilePath::fromString(QDir::cleanPath(QDir(buildDir).absoluteFilePath(relativeDir)));
|
||||
}
|
||||
|
||||
void QmakeBuildSystem::proFileParseError(const QString &errorMessage)
|
||||
void QmakeBuildSystem::proFileParseError(const QString &errorMessage, const FilePath &filePath)
|
||||
{
|
||||
Core::MessageManager::write(errorMessage);
|
||||
TaskHub::addTask(BuildSystemTask(Task::Error, errorMessage, filePath));
|
||||
}
|
||||
|
||||
QtSupport::ProFileReader *QmakeBuildSystem::createProFileReader(const QmakeProFile *qmakeProFile)
|
||||
|
||||
Reference in New Issue
Block a user