diff options
author | ConfuSomu | 2023-11-12 00:16:02 -0500 |
---|---|---|
committer | ConfuSomu | 2023-11-12 00:16:02 -0500 |
commit | 8ee7a379bbd8c1e2d7831208308bf11eabcdc79d (patch) | |
tree | 601b9d6e453d0be1acc7a56a3df6f233cc4a73da /src/list_item.cpp | |
parent | 80a658f062328ab8b47dc6b2557d274f51278b3a (diff) | |
download | ActorViewer-8ee7a379bbd8c1e2d7831208308bf11eabcdc79d.tar ActorViewer-8ee7a379bbd8c1e2d7831208308bf11eabcdc79d.tar.gz ActorViewer-8ee7a379bbd8c1e2d7831208308bf11eabcdc79d.zip |
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.
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r-- | src/list_item.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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}); |