aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.cpp
diff options
context:
space:
mode:
authorConfuSomu2023-04-06 16:28:55 -0400
committerConfuSomu2023-04-06 16:28:55 -0400
commitd3d14e07c202f9350f817802777720ded85e4248 (patch)
treea2ce10432e09fb2bec52c4f675c369b92204a5c9 /src/list_item.cpp
parent75a48db1459d4c386b867ae6536ff481adf34f1f (diff)
downloadActorViewer-d3d14e07c202f9350f817802777720ded85e4248.tar
ActorViewer-d3d14e07c202f9350f817802777720ded85e4248.tar.gz
ActorViewer-d3d14e07c202f9350f817802777720ded85e4248.zip
Rename ListItem class to StatusListItem
The new class name is more descriptive about how it is used.
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r--src/list_item.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp
index 6f27ff0..c74fa39 100644
--- a/src/list_item.cpp
+++ b/src/list_item.cpp
@@ -11,7 +11,7 @@ QIcon* choose_icon(StatusType status_type) {
}
}
-ListItem::ListItem(const QString &text, StatusType status_type, bool has_attachement, Archive* data_archive, QListWidget *parent, int index) :
+StatusListItem::StatusListItem(const QString &text, StatusType status_type, bool has_attachement, Archive* data_archive, QListWidget *parent, int index) :
status_index(index), has_attachement(has_attachement), status_type(status_type), data_archive(data_archive)
{
setText(text);
@@ -31,14 +31,14 @@ ListItem::ListItem(const QString &text, StatusType status_type, bool has_attache
#endif
}
-int ListItem::get_status_index() {
+int StatusListItem::get_status_index() {
return status_index;
}
-StatusType ListItem::get_status_type() {
+StatusType StatusListItem::get_status_type() {
return status_type;
}
-QString ListItem::get_info_html(int text_zone_width, QLocale* locale) {
+QString StatusListItem::get_info_html(int text_zone_width, QLocale* locale) {
return data_archive->get_html_status_info(status_index, text_zone_width, status_type, locale);
}