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.h | |
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.h')
-rw-r--r-- | src/list_item.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/list_item.h b/src/list_item.h index d730551..22debe7 100644 --- a/src/list_item.h +++ b/src/list_item.h @@ -1,6 +1,7 @@ #pragma once #include <QListWidgetItem> +#include "src/activitypub/apactivity.h" #include "src/archive/base_archive.h" #include "types.h" @@ -13,6 +14,7 @@ public: StatusListItem(const QString &text, StatusType status_type, bool has_attachement, Archive* data_archive, QListWidget *parent = nullptr, int index = 0); int get_status_index(); StatusType get_status_type(); + APActivity* get_activity(); const QString get_info_html(int text_zone_width, QLocale* locale); private: |