mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
PixelPaint: Port ImageEditor title to new string
This commit is contained in:
parent
3805e4e3a9
commit
5fed25ca9a
3 changed files with 14 additions and 15 deletions
|
@ -52,9 +52,8 @@ public:
|
|||
DeprecatedString const& path() const { return m_path; }
|
||||
void set_path(DeprecatedString);
|
||||
|
||||
DeprecatedString const& title() const { return m_title; }
|
||||
void set_title(DeprecatedString);
|
||||
void set_title(String const& title) { set_title(title.to_deprecated_string()); }
|
||||
String const& title() const { return m_title; }
|
||||
void set_title(String);
|
||||
|
||||
void add_guide(NonnullRefPtr<Guide> guide) { m_guides.append(guide); }
|
||||
void remove_guide(Guide const& guide)
|
||||
|
@ -83,7 +82,7 @@ public:
|
|||
|
||||
Function<void(Layer*)> on_active_layer_change;
|
||||
|
||||
Function<void(DeprecatedString const&)> on_title_change;
|
||||
Function<void(String const&)> on_title_change;
|
||||
|
||||
Function<void(Gfx::IntPoint)> on_image_mouse_position_change;
|
||||
|
||||
|
@ -170,7 +169,7 @@ private:
|
|||
GUI::UndoStack m_undo_stack;
|
||||
|
||||
DeprecatedString m_path;
|
||||
DeprecatedString m_title;
|
||||
String m_title;
|
||||
|
||||
Vector<NonnullRefPtr<Guide>> m_guides;
|
||||
bool m_show_guides { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue