diff options
author | ConfuSomu | 2022-12-27 03:58:29 -0500 |
---|---|---|
committer | ConfuSomu | 2022-12-27 03:58:29 -0500 |
commit | 006d3cec6779ee85337bbabe02a6ff859d71f656 (patch) | |
tree | d6e95bfcb0af314cdaf0f20a59f3d8545c6d9d5f /src/list_item.h | |
parent | 941bd57371360eb01a28899aa62ee6c9dcca33c8 (diff) | |
download | ActorViewer-006d3cec6779ee85337bbabe02a6ff859d71f656.tar ActorViewer-006d3cec6779ee85337bbabe02a6ff859d71f656.tar.gz ActorViewer-006d3cec6779ee85337bbabe02a6ff859d71f656.zip |
Store metadata of items that are in status list
There is more control and customizability of elements added to the
status list, which allows us to set the icon used and also to store
additional information about the status that has been selected, useful
when we have to display it with more detail.
Diffstat (limited to 'src/list_item.h')
-rw-r--r-- | src/list_item.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/list_item.h b/src/list_item.h new file mode 100644 index 0000000..e2b3c3f --- /dev/null +++ b/src/list_item.h @@ -0,0 +1,18 @@ +#pragma once + +#include <QListWidgetItem> +#include "types.h" + +class ListItem : QListWidgetItem { +public: + enum ItemType { + ArchiveListItemType = QListWidgetItem::UserType + }; + + ListItem(const QString &text, StatusType status_type, QListWidget *parent = nullptr, int index = 0); + +private: + int status_index; + StatusType status_type; + bool has_attachement; +}; |