mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibGUI+Userland: Port Action status tips to String
This commit is contained in:
parent
4b169cf25f
commit
5234a30731
16 changed files with 86 additions and 85 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <AK/HashTable.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <AK/Weakable.h>
|
||||
#include <LibCore/Object.h>
|
||||
|
@ -89,7 +90,7 @@ public:
|
|||
void set_tooltip(DeprecatedString);
|
||||
|
||||
DeprecatedString status_tip() const;
|
||||
void set_status_tip(DeprecatedString status_tip) { m_status_tip = move(status_tip); }
|
||||
void set_status_tip(String status_tip) { m_status_tip = move(status_tip); }
|
||||
|
||||
Shortcut const& shortcut() const { return m_shortcut; }
|
||||
Shortcut const& alternate_shortcut() const { return m_alternate_shortcut; }
|
||||
|
@ -150,7 +151,7 @@ private:
|
|||
|
||||
DeprecatedString m_text;
|
||||
Optional<DeprecatedString> m_tooltip;
|
||||
DeprecatedString m_status_tip;
|
||||
String m_status_tip;
|
||||
RefPtr<Gfx::Bitmap const> m_icon;
|
||||
Shortcut m_shortcut;
|
||||
Shortcut m_alternate_shortcut;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue