From 21a89b65fc4198e9f6de00cf07d24485bb6623d6 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 6 Sep 2022 11:04:28 -0400 Subject: LibGUI: Set a tooltip on the emojis' buttons to their code point names --- Userland/Libraries/LibGUI/EmojiInputDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Userland') 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 done(ExecResult::OK); }; + if (name.has_value()) + button->set_tooltip(name->to_titlecase()); + code_points.empend(code_point, move(name), move(button)); } -- cgit v1.2.3