aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r--src/list_item.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp
new file mode 100644
index 0000000..6409169
--- /dev/null
+++ b/src/list_item.cpp
@@ -0,0 +1,12 @@
+#include "list_item.h"
+#include "types.h"
+
+QIcon* choose_icon(StatusType status_type) {
+ return new QIcon(); // TODO: null icon for the moment
+}
+
+ListItem::ListItem(const QString &text, StatusType status_type, QListWidget *parent, int index) :
+ QListWidgetItem(*choose_icon(status_type), text, parent, ArchiveListItemType), status_index(index)
+{
+
+}