diff options
author | ConfuSomu | 2023-04-06 15:57:55 -0400 |
---|---|---|
committer | ConfuSomu | 2023-04-06 16:25:54 -0400 |
commit | 75a48db1459d4c386b867ae6536ff481adf34f1f (patch) | |
tree | 3e3b090ee3b27952bca36104137df628f13a2957 /src/mainwindow.cpp | |
parent | 3095e11bfaba99fe4fb598a53914b80979aafe0f (diff) | |
download | ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.tar.gz ActorViewer-75a48db1459d4c386b867ae6536ff481adf34f1f.zip |
Move call to get status HTML info into ListItem
This makes the code less of a mess and will allow moving more of the
code that renders HTML status info into the ListItem class.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b08fd14..d635ae8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -73,9 +73,9 @@ void MainWindow::on_actionAbout_triggered(bool checked) { } void MainWindow::on_listWidget_itemActivated(QListWidgetItem *item) { - ListItem* casted = dynamic_cast<ListItem*>(item); - if (casted != nullptr) { - QString status_info = data_archive->get_html_status_info(casted->get_status_index(), ui->statusInfoText->width(), casted->get_status_type(), &locale_context); + ListItem* status = dynamic_cast<ListItem*>(item); + if (status != nullptr) { + QString status_info = status->get_info_html(ui->statusInfoText->width(), &locale_context); ui->statusInfoText->setHtml(status_info); } } |