aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.h
diff options
context:
space:
mode:
authorConfuSomu2023-04-06 15:57:55 -0400
committerConfuSomu2023-04-06 16:25:54 -0400
commit75a48db1459d4c386b867ae6536ff481adf34f1f (patch)
tree3e3b090ee3b27952bca36104137df628f13a2957 /src/list_item.h
parent3095e11bfaba99fe4fb598a53914b80979aafe0f (diff)
downloadActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar
ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar.gz
ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.zip
Move call to get status HTML info into ListItem
This makes the code less of a mess and will allow moving more of the code that renders HTML status info into the ListItem class.
Diffstat (limited to 'src/list_item.h')
-rw-r--r--src/list_item.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/list_item.h b/src/list_item.h
index c722a72..80a57ea 100644
--- a/src/list_item.h
+++ b/src/list_item.h
@@ -1,6 +1,7 @@
#pragma once
#include <QListWidgetItem>
+#include "src/archive_parser.h"
#include "types.h"
class ListItem : public QListWidgetItem {
@@ -9,12 +10,14 @@ public:
ArchiveListItemType = QListWidgetItem::UserType
};
- ListItem(const QString &text, StatusType status_type, bool has_attachement, QListWidget *parent = nullptr, int index = 0);
+ ListItem(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();
+ QString get_info_html(int text_zone_width, QLocale* locale);
private:
int status_index;
StatusType status_type;
bool has_attachement = false;
+ Archive* data_archive;
};