diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2022-02-20 23:00:04 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-20 23:00:04 -0600 |
| commit | bcbbb899f9b3ec9831c59d06d6bbdd1d60b4f36c (patch) | |
| tree | a7721c47ee3fa53ee0c77de7b08eeb4893bd2525 /src/emotes.cpp | |
| parent | d0336c1035a67d4b7db13f18f74ecaf51abd2579 (diff) | |
| parent | 0e2bd0b110fe44f485871d20b5e614a214470f12 (diff) | |
Merge pull request #657 from AttorneyOnline/icons-for-all
Add icons for iniswaps and emotes in the dropdown
Diffstat (limited to 'src/emotes.cpp')
| -rw-r--r-- | src/emotes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emotes.cpp b/src/emotes.cpp index 53f2b065..547dc0ea 100644 --- a/src/emotes.cpp +++ b/src/emotes.cpp @@ -141,14 +141,14 @@ void Courtroom::set_emote_dropdown() ui_emote_dropdown->clear(); int total_emotes = ao_app->get_emote_number(current_char); - QStringList emote_list; for (int n = 0; n < total_emotes; ++n) { - emote_list.append(QString::number(n + 1) + ": " + - ao_app->get_emote_comment(current_char, n)); + ui_emote_dropdown->addItem(QString::number(n + 1) + ": " + + ao_app->get_emote_comment(current_char, n)); + QString icon_path = ao_app->get_image_suffix(ao_app->get_character_path( + current_char, "emotions/button" + QString::number(n + 1) + "_off")); + ui_emote_dropdown->setItemIcon(n, QIcon(icon_path)); } - - ui_emote_dropdown->addItems(emote_list); } void Courtroom::select_emote(int p_id) |
