Use the static image lookup for char_icons (#954)
This commit is contained in:
parent
f2cf70232e
commit
9517666666
@ -64,7 +64,7 @@ void AOCharButton::set_passworded() { ui_passworded->show(); }
|
||||
void AOCharButton::set_image(QString p_character)
|
||||
{
|
||||
QString image_path = ao_app->get_image_suffix(
|
||||
ao_app->get_character_path(p_character, "char_icon"));
|
||||
ao_app->get_character_path(p_character, "char_icon"), true);
|
||||
|
||||
this->setText("");
|
||||
|
||||
|
@ -304,8 +304,10 @@ void Courtroom::character_loading_finished()
|
||||
// create the character tree item
|
||||
QTreeWidgetItem *treeItem = new QTreeWidgetItem();
|
||||
treeItem->setText(0, char_list.at(n).name);
|
||||
treeItem->setIcon(0, QIcon(ao_app->get_image_suffix(
|
||||
ao_app->get_character_path(char_list.at(n).name, "char_icon"))));
|
||||
treeItem->setIcon(
|
||||
0, QIcon(ao_app->get_image_suffix(
|
||||
ao_app->get_character_path(char_list.at(n).name, "char_icon"),
|
||||
true)));
|
||||
treeItem->setText(1, QString::number(n));
|
||||
// category logic
|
||||
QTreeWidgetItem *category;
|
||||
|
Loading…
Reference in New Issue
Block a user