summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/task.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-04-13 14:30:09 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-04-16 09:35:03 +0000
commitdd231fa7547b78d319b67e8266b447da4d010433 (patch)
treee9a60a12c93ab6762f05e78d9c60667ef128315a /src/plugins/projectexplorer/task.h
parenta1e33602363a8f94746a249b97731e5bfaa51b84 (diff)
downloadqt-creator-dd231fa7547b78d319b67e8266b447da4d010433.tar.gz
ProjectExplorer: Make Task accept a QIcon
...instead of a FileName. If requiring a file name, one has to use Utils::Icon::imageFileName(), which is discouraged according to the comment there. I've tried that and ended up with a black/white icon. With Utils::Icon::icon() the icon retains its color. Change-Id: Id84f514f7408f4b24b74d68b4e9096ceaa0851dd Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/task.h')
-rw-r--r--src/plugins/projectexplorer/task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h
index e8230e799d..be63662f80 100644
--- a/src/plugins/projectexplorer/task.h
+++ b/src/plugins/projectexplorer/task.h
@@ -55,7 +55,7 @@ public:
Task() = default;
Task(TaskType type, const QString &description,
const Utils::FileName &file, int line, Core::Id category,
- const Utils::FileName &iconName = Utils::FileName(),
+ const QIcon &icon = QIcon(),
bool addTextMark = true);
static Task compilerMissingTask();