Add method to task to retreive the icon

This makes a task somewhat more useful outside of the
context of a taskwindow.

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-04-19 16:03:28 +02:00
parent 4c1646ac75
commit e3720a4659
2 changed files with 29 additions and 23 deletions

View File

@@ -86,6 +86,9 @@ struct PROJECTEXPLORER_EXPORT Task {
// doesn't work if you split it up, nor are our parsers
// anywhere near being that good
QList<QTextLayout::FormatRange> formats;
/// Get the icon used to represent this task
QIcon icon() const;
};
class PROJECTEXPLORER_EXPORT TaskWindow : public Core::IOutputPane