소스 검색

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);
         };
 
+        if (name.has_value())
+            button->set_tooltip(name->to_titlecase());
+
         code_points.empend(code_point, move(name), move(button));
     }