mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
LibGUI: Set InputBox initial value to text_value string
This commit is contained in:
parent
3583b62ad3
commit
f10967e364
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue