forked from qt-creator/qt-creator
ProjectManager: Add convenience Task subclasses
For Compile, BuildSystem and Deployment. Unclutters user code and reduces binary size. Change-Id: Ia18e917bb411754162e9f4ec6056d752a020bb50 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -494,9 +494,8 @@ void QbsSession::handlePacket(const QJsonObject &packet)
|
||||
|
||||
// TODO: This loop occurs a lot. Factor it out.
|
||||
for (const ErrorInfoItem &item : errorInfo.items) {
|
||||
TaskHub::addTask(Task::Warning, item.description,
|
||||
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM,
|
||||
item.filePath, item.line);
|
||||
TaskHub::addTask(BuildSystemTask(Task::Warning, item.description,
|
||||
item.filePath, item.line));
|
||||
}
|
||||
} else if (type == "task-started") {
|
||||
emit taskStarted(packet.value("description").toString(),
|
||||
|
||||
Reference in New Issue
Block a user