diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-02-11 20:51:04 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:45:09 +0000 |
commit | e39adc4772dbc575fc8209130129270ceea24229 (patch) | |
tree | b86180f19b56c66008246cbeea1d198847572f55 /Userland/Libraries/LibGUI/ProcessChooser.h | |
parent | b5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e (diff) | |
download | serenity-e39adc4772dbc575fc8209130129270ceea24229.zip |
Userland: Set Button text using the new String class
Diffstat (limited to 'Userland/Libraries/LibGUI/ProcessChooser.h')
-rw-r--r-- | Userland/Libraries/LibGUI/ProcessChooser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/ProcessChooser.h b/Userland/Libraries/LibGUI/ProcessChooser.h index d684103b03..5c7e79eef3 100644 --- a/Userland/Libraries/LibGUI/ProcessChooser.h +++ b/Userland/Libraries/LibGUI/ProcessChooser.h @@ -7,6 +7,7 @@ #pragma once +#include <AK/String.h> #include <LibCore/Timer.h> #include <LibGUI/Dialog.h> #include <LibGUI/RunningProcessesModel.h> @@ -22,14 +23,14 @@ public: pid_t pid() const { return m_pid; } private: - ProcessChooser(StringView window_title = "Process Chooser"sv, StringView button_label = "Select"sv, Gfx::Bitmap const* window_icon = nullptr, GUI::Window* parent_window = nullptr); + ProcessChooser(StringView window_title = "Process Chooser"sv, String button_label = String::from_utf8_short_string("Select"sv), Gfx::Bitmap const* window_icon = nullptr, GUI::Window* parent_window = nullptr); void set_pid_from_index_and_close(ModelIndex const&); pid_t m_pid { 0 }; DeprecatedString m_window_title; - DeprecatedString m_button_label; + String m_button_label; RefPtr<Gfx::Bitmap> m_window_icon; RefPtr<TableView> m_table_view; RefPtr<RunningProcessesModel> m_process_model; |