From 4579089fde7d3c64ed98767714700f30e243e7ae Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 25 Feb 2023 15:58:21 -0500 Subject: Implement Announce activity support This commit adds support for listing Announce activities/reblogs in the status list. These can be hidden using the new "Show reblogs" action in the "View" menu. --- src/list_item.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/list_item.cpp') 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; +} -- cgit v1.2.3-54-g00ecf