aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.cpp
diff options
context:
space:
mode:
authorConfuSomu2023-02-25 15:58:21 -0500
committerConfuSomu2023-02-25 15:58:21 -0500
commit4579089fde7d3c64ed98767714700f30e243e7ae (patch)
treed1192bad0bec7003bd8b761a0a91d8021ff4b90a /src/list_item.cpp
parentbc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c (diff)
downloadActorViewer-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.cpp6
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;
+}