summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-05-13 13:10:27 +0100
committerLinus Groh <mail@linusgroh.de>2022-05-13 16:27:43 +0200
commitcdffe556c8fcca034b10cf91f0b05c17d835bc7b (patch)
tree189cbd59652eee1b2783a8323a7194100c78fd07 /Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
parent1f82beded3ae3664265f1ddf6075f64ca5a08cde (diff)
downloadserenity-cdffe556c8fcca034b10cf91f0b05c17d835bc7b.zip
LibGUI+Userland: Make Dialog::ExecResult an enum class
Diffstat (limited to 'Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp')
-rw-r--r--Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
index 6a66500d86..27bccb2b6f 100644
--- a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
+++ b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
@@ -37,7 +37,7 @@ public:
auto dialog = KeymapSelectionDialog::construct(parent_window, selected_keymaps);
dialog->set_title("Add a keymap");
- if (dialog->exec() == GUI::Dialog::ExecOK) {
+ if (dialog->exec() == ExecResult::OK) {
return dialog->selected_keymap();
}
@@ -87,12 +87,12 @@ private:
auto& ok_button = *widget.find_descendant_of_type_named<GUI::Button>("ok_button");
ok_button.on_click = [this](auto) {
- done(Dialog::ExecOK);
+ done(ExecResult::OK);
};
auto& cancel_button = *widget.find_descendant_of_type_named<GUI::Button>("cancel_button");
cancel_button.on_click = [this](auto) {
- done(Dialog::ExecCancel);
+ done(ExecResult::Cancel);
};
}