aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_parser.cpp
diff options
context:
space:
mode:
authorConfuSomu2023-04-06 15:57:55 -0400
committerConfuSomu2023-04-06 16:25:54 -0400
commit75a48db1459d4c386b867ae6536ff481adf34f1f (patch)
tree3e3b090ee3b27952bca36104137df628f13a2957 /src/archive_parser.cpp
parent3095e11bfaba99fe4fb598a53914b80979aafe0f (diff)
downloadActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar
ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar.gz
ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.zip
Move call to get status HTML info into ListItem
This makes the code less of a mess and will allow moving more of the code that renders HTML status info into the ListItem class.
Diffstat (limited to 'src/archive_parser.cpp')
-rw-r--r--src/archive_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive_parser.cpp b/src/archive_parser.cpp
index 2522ffa..60278bc 100644
--- a/src/archive_parser.cpp
+++ b/src/archive_parser.cpp
@@ -149,10 +149,10 @@ void Archive::update_status_list(ViewStatusTypes allowed_types, QListWidget *par
QTextDocument strip_html;
strip_html.setHtml(activity.value("content").toString());
- ListItem *item = new ListItem(strip_html.toPlainText(), status_type, has_attachment, parent, i);
+ ListItem *item = new ListItem(strip_html.toPlainText(), status_type, has_attachment, this, parent, i);
}
} else if (activity_type == "Announce" and obj["object"].isString()) {
- ListItem *item = new ListItem(activity_type, REBLOG, false, parent, i);
+ ListItem *item = new ListItem(activity_type, REBLOG, false, this, parent, i);
}
}
next_item: