diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-09-06 11:04:28 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-09-07 14:34:02 +0100 |
commit | 21a89b65fc4198e9f6de00cf07d24485bb6623d6 (patch) | |
tree | 54e76a8cc3d2eec8a4fb01214b66bc8ce635e23b /Userland/Libraries/LibGUI | |
parent | eeb7b153a27e884bbf7f9d218d64a9628a95044d (diff) | |
download | serenity-21a89b65fc4198e9f6de00cf07d24485bb6623d6.zip |
LibGUI: Set a tooltip on the emojis' buttons to their code point names
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/EmojiInputDialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp index 9f3d3487b2..cf20c31289 100644 --- a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp +++ b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp @@ -90,6 +90,9 @@ auto EmojiInputDialog::supported_emoji() -> Vector<Emoji> done(ExecResult::OK); }; + if (name.has_value()) + button->set_tooltip(name->to_titlecase()); + code_points.empend(code_point, move(name), move(button)); } |