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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/list_item.h') 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 +#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: -- cgit v1.2.3-54-g00ecf