diff options
author | ConfuSomu | 2024-01-20 21:57:39 -0500 |
---|---|---|
committer | ConfuSomu | 2024-01-20 21:57:39 -0500 |
commit | 5aac009e969cc3bd15c484ba3437348cb7a4d186 (patch) | |
tree | 96cff55a273b9de31d639b00f7139110946ce1b6 /src/activitypub/apattachment.h | |
parent | 328c9b166e9d623cd1b80c7ae064baf6172da58f (diff) | |
download | ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar.gz ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.zip |
Implemement Actor information tab
This class still has improvements to be made, but it works and I am
satisfied with it!
Diffstat (limited to 'src/activitypub/apattachment.h')
-rw-r--r-- | src/activitypub/apattachment.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/activitypub/apattachment.h b/src/activitypub/apattachment.h index ff40dc3..f4e620b 100644 --- a/src/activitypub/apattachment.h +++ b/src/activitypub/apattachment.h @@ -2,6 +2,7 @@ #include "apbase.h" #include "fields.h" +#include <QPixmap> #include <array> #include <vector> @@ -11,6 +12,7 @@ public: APAttachment(APAttachmentFields fields); ~APAttachment() {}; QString get_html_render(HtmlRenderDetails render_info); + const QPixmap& get_pixmap(int width = 0, int height = 0); private: QString blurhash; @@ -19,6 +21,8 @@ private: QString description; // alt text, maps to "name" QString path_url; // attachment URL, might be file on filesystem (make sure that the attachment dir has been found and that the path is correct) QString filename; // nicer descriptor of the attachment's path + + QPixmap* pixmap = nullptr; }; class APAttachmentList : public std::vector<APAttachment>, APBase { |