From d3d14e07c202f9350f817802777720ded85e4248 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Thu, 6 Apr 2023 16:28:55 -0400 Subject: Rename ListItem class to StatusListItem The new class name is more descriptive about how it is used. --- src/list_item.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/list_item.cpp') 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); } -- cgit v1.2.3-54-g00ecf