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/Applications/Calendar/AddEventDialog.cpp | |
parent | b5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e (diff) | |
download | serenity-e39adc4772dbc575fc8209130129270ceea24229.zip |
Userland: Set Button text using the new String class
Diffstat (limited to 'Userland/Applications/Calendar/AddEventDialog.cpp')
-rw-r--r-- | Userland/Applications/Calendar/AddEventDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Calendar/AddEventDialog.cpp b/Userland/Applications/Calendar/AddEventDialog.cpp index 058bd52cdd..945ad8760f 100644 --- a/Userland/Applications/Calendar/AddEventDialog.cpp +++ b/Userland/Applications/Calendar/AddEventDialog.cpp @@ -93,7 +93,7 @@ AddEventDialog::AddEventDialog(Core::DateTime date_time, Window* parent_window) button_container.set_fixed_height(20); button_container.set_layout<GUI::HorizontalBoxLayout>(); button_container.layout()->add_spacer(); - auto& ok_button = button_container.add<GUI::Button>("OK"); + auto& ok_button = button_container.add<GUI::Button>(String::from_utf8_short_string("OK"sv)); ok_button.set_fixed_size(80, 20); ok_button.on_click = [this](auto) { dbgln("TODO: Add event icon on specific tile"); |