From 8ee7a379bbd8c1e2d7831208308bf11eabcdc79d Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sun, 12 Nov 2023 00:16:02 -0500 Subject: Move status info widget to its own widget It is responsable of processing list items which are given to it, via signals, and then displaying them on the interface. Making this widget separate and modular will allow creating more advanced status views that aren't only HTML-based and that are more intuitive to use. --- src/list_item.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/list_item.cpp') diff --git a/src/list_item.cpp b/src/list_item.cpp index deead65..b4e7e84 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -50,6 +50,10 @@ StatusType StatusListItem::get_status_type() { return status_type; } +APActivity* StatusListItem::get_activity() { + return data_archive->get_activity(status_index, {status_type}); +} + const QString StatusListItem::get_info_html(int text_zone_width, QLocale* locale) { APActivity* activity = data_archive->get_activity(status_index, {status_type}); QString html = activity->get_html_render({text_zone_width, locale}); -- cgit v1.2.3-54-g00ecf