diff options
author | ConfuSomu | 2022-12-28 19:28:01 -0500 |
---|---|---|
committer | ConfuSomu | 2022-12-28 19:28:01 -0500 |
commit | 1b201ea3a4821a44887202692e9c77961c163a57 (patch) | |
tree | fda563859174d5a35560b5fdb2d217cc09911fc3 /src/list_item.cpp | |
parent | c0cf3a1d0b4ff74ad43d0489631d4b9582b72d81 (diff) | |
download | ActorViewer-1b201ea3a4821a44887202692e9c77961c163a57.tar ActorViewer-1b201ea3a4821a44887202692e9c77961c163a57.tar.gz ActorViewer-1b201ea3a4821a44887202692e9c77961c163a57.zip |
Determine status type
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r-- | src/list_item.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp index a7fde7e..ce7c86e 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -15,5 +15,16 @@ QIcon* choose_icon(StatusType status_type) { ListItem::ListItem(const QString &text, StatusType status_type, QListWidget *parent, int index) : QListWidgetItem(*choose_icon(status_type), text, parent, ArchiveListItemType), status_index(index) { - +#ifndef NDEBUG + QString tool_tip; + switch (status_type) { + case PUBLIC: tool_tip = "Public"; break; + case UNLISTED: tool_tip = "Unlisted"; break; + case PRIVATE: tool_tip = "Private"; break; + case DIRECT: tool_tip = "Direct"; break; + case UNKNOWN: tool_tip = "Unknown"; break; + case REBLOG: tool_tip = "Reblog"; break; + } + setToolTip(tool_tip); +#endif } |