aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorConfuSomu2022-12-27 03:58:29 -0500
committerConfuSomu2022-12-27 03:58:29 -0500
commit006d3cec6779ee85337bbabe02a6ff859d71f656 (patch)
treed6e95bfcb0af314cdaf0f20a59f3d8545c6d9d5f /src/mainwindow.cpp
parent941bd57371360eb01a28899aa62ee6c9dcca33c8 (diff)
downloadActorViewer-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/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1424ff5..0b77012 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -54,7 +54,7 @@ void MainWindow::on_actionOpen_triggered(bool checked) {
ui->listWidget->clear();
if (parse_error == Archive::NoError) {
- ui->listWidget->addItems(data_archive->get_status_list(view_filters));
+ data_archive->update_status_list(view_filters, ui->listWidget);
}
QApplication::restoreOverrideCursor();
@@ -71,7 +71,7 @@ void MainWindow::on_actionAbout_triggered(bool checked) {
void MainWindow::relist_statuses() {
if (data_archive) {
ui->listWidget->clear();
- ui->listWidget->addItems(data_archive->get_status_list(view_filters));
+ data_archive->update_status_list(view_filters, ui->listWidget);
view_filters_changed = false;
}
}