diff options
author | hjk <hjk@qt.io> | 2020-01-15 08:56:11 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-20 10:11:59 +0000 |
commit | 0334b6e491a3688f2455e075595afde87b8f76af (patch) | |
tree | cc63a1fae976a46ea6ddc5d2cb956d1d7ac37516 /src/plugins/debugger/debuggerkitinformation.cpp | |
parent | 7e19d1af7c356dae703e110f9d24b75429ef8fb5 (diff) |
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>
Diffstat (limited to 'src/plugins/debugger/debuggerkitinformation.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerkitinformation.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/debugger/debuggerkitinformation.cpp b/src/plugins/debugger/debuggerkitinformation.cpp index 356dd9ed95..f13fcb1038 100644 --- a/src/plugins/debugger/debuggerkitinformation.cpp +++ b/src/plugins/debugger/debuggerkitinformation.cpp @@ -355,27 +355,26 @@ Tasks DebuggerKitAspect::validateDebugger(const Kit *k) if (const DebuggerItem *item = debugger(k)) path = item->command().toUserOutput(); - const Core::Id id = ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM; if (errors & NoDebugger) - result << Task(Task::Warning, tr("No debugger set up."), FilePath(), -1, id); + result << BuildSystemTask(Task::Warning, tr("No debugger set up.")); if (errors & DebuggerNotFound) - result << Task(Task::Error, tr("Debugger \"%1\" not found.").arg(path), - FilePath(), -1, id); + result << BuildSystemTask(Task::Error, tr("Debugger \"%1\" not found.").arg(path)); + if (errors & DebuggerNotExecutable) - result << Task(Task::Error, tr("Debugger \"%1\" not executable.").arg(path), FilePath(), -1, id); + result << BuildSystemTask(Task::Error, tr("Debugger \"%1\" not executable.").arg(path)); if (errors & DebuggerNeedsAbsolutePath) { const QString message = tr("The debugger location must be given as an " "absolute path (%1).").arg(path); - result << Task(Task::Error, message, FilePath(), -1, id); + result << BuildSystemTask(Task::Error, message); } if (errors & DebuggerDoesNotMatch) { const QString message = tr("The ABI of the selected debugger does not " "match the toolchain ABI."); - result << Task(Task::Warning, message, FilePath(), -1, id); + result << BuildSystemTask(Task::Warning, message); } return result; } |