瀏覽代碼

LibGUI: Set a tooltip on the emojis' buttons to their code point names

Timothy Flynn 2 年之前
父節點
當前提交
21a89b65fc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Userland/Libraries/LibGUI/EmojiInputDialog.cpp

+ 3 - 0
Userland/Libraries/LibGUI/EmojiInputDialog.cpp

@@ -90,6 +90,9 @@ auto EmojiInputDialog::supported_emoji() -> Vector<Emoji>
             done(ExecResult::OK);
             done(ExecResult::OK);
         };
         };
 
 
+        if (name.has_value())
+            button->set_tooltip(name->to_titlecase());
+
         code_points.empend(code_point, move(name), move(button));
         code_points.empend(code_point, move(name), move(button));
     }
     }