diff options
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r-- | src/list_item.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp index 7ecbe57..b7ee578 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -13,7 +13,7 @@ QIcon* choose_icon(StatusType status_type) { } ListItem::ListItem(const QString &text, StatusType status_type, bool has_attachement, QListWidget *parent, int index) : - status_index(index), has_attachement(has_attachement) + status_index(index), has_attachement(has_attachement), status_type(status_type) { setText(text); setIcon(*choose_icon(status_type)); @@ -35,3 +35,7 @@ ListItem::ListItem(const QString &text, StatusType status_type, bool has_attache int ListItem::get_status_index() { return status_index; } + +StatusType ListItem::get_status_type() { + return status_type; +} |