diff options
author | ConfuSomu | 2023-02-25 15:58:21 -0500 |
---|---|---|
committer | ConfuSomu | 2023-02-25 15:58:21 -0500 |
commit | 4579089fde7d3c64ed98767714700f30e243e7ae (patch) | |
tree | d1192bad0bec7003bd8b761a0a91d8021ff4b90a /src/list_item.cpp | |
parent | bc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c (diff) | |
download | ActorViewer-4579089fde7d3c64ed98767714700f30e243e7ae.tar ActorViewer-4579089fde7d3c64ed98767714700f30e243e7ae.tar.gz ActorViewer-4579089fde7d3c64ed98767714700f30e243e7ae.zip |
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.
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; +} |