summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ProcessChooser.h
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-02-11 20:51:04 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:45:09 +0000
commite39adc4772dbc575fc8209130129270ceea24229 (patch)
treeb86180f19b56c66008246cbeea1d198847572f55 /Userland/Libraries/LibGUI/ProcessChooser.h
parentb5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e (diff)
downloadserenity-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.h5
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;