mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibGUI: Parse ampersand string for tooltips only in GUI::Action
It seems unnecessary to pass every tooltip string through Gfx::parse_ampersand_string() when only Action tooltips need to parse a title.
This commit is contained in:
parent
aea244efe1
commit
16defb4806
Notes:
sideshowbarker
2024-07-17 03:16:02 +09:00
Author: https://github.com/krkk
Commit: 16defb4806
Pull-request: https://github.com/SerenityOS/serenity/pull/21020
Reviewed-by: https://github.com/AtkinsSJ
4 changed files with 8 additions and 3 deletions
|
@ -84,7 +84,7 @@ public:
|
|||
DeprecatedString text() const { return m_text; }
|
||||
void set_text(DeprecatedString);
|
||||
|
||||
DeprecatedString tooltip() const { return m_tooltip.value_or(m_text); }
|
||||
DeprecatedString tooltip() const;
|
||||
void set_tooltip(DeprecatedString);
|
||||
|
||||
Optional<String> status_tip() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue