diff options
author | Linus Groh <mail@linusgroh.de> | 2021-02-20 12:04:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-20 12:19:46 +0100 |
commit | f10967e364e2efbd5e3783449583b43427b7dc61 (patch) | |
tree | 89a68bc3873cec47fdee4088284868283e57e25e /Userland/Libraries/LibGUI/InputBox.h | |
parent | 3583b62ad36d8ece413eea5514493bf16fb954f7 (diff) | |
download | serenity-f10967e364e2efbd5e3783449583b43427b7dc61.zip |
LibGUI: Set InputBox initial value to text_value string
Diffstat (limited to 'Userland/Libraries/LibGUI/InputBox.h')
-rw-r--r-- | Userland/Libraries/LibGUI/InputBox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/InputBox.h b/Userland/Libraries/LibGUI/InputBox.h index c2fa24f282..6a91003855 100644 --- a/Userland/Libraries/LibGUI/InputBox.h +++ b/Userland/Libraries/LibGUI/InputBox.h @@ -38,13 +38,13 @@ public: static int show(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title); private: - explicit InputBox(Window* parent_window, const StringView& prompt, const StringView& title); + explicit InputBox(Window* parent_window, String& text_value, const StringView& prompt, const StringView& title); String text_value() const { return m_text_value; } void build(); - String m_prompt; String m_text_value; + String m_prompt; RefPtr<Button> m_ok_button; RefPtr<Button> m_cancel_button; |