mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
Notes:
sideshowbarker
2024-07-17 10:55:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: cdffe556c8
Pull-request: https://github.com/SerenityOS/serenity/pull/14021
Reviewed-by: https://github.com/linusg ✅
90 changed files with 232 additions and 232 deletions
|
@ -236,14 +236,14 @@ void ColorPicker::build_ui()
|
|||
ok_button.set_fixed_width(80);
|
||||
ok_button.set_text("OK");
|
||||
ok_button.on_click = [this](auto) {
|
||||
done(ExecOK);
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
|
||||
auto& cancel_button = button_container.add<Button>();
|
||||
cancel_button.set_fixed_width(80);
|
||||
cancel_button.set_text("Cancel");
|
||||
cancel_button.on_click = [this](auto) {
|
||||
done(ExecCancel);
|
||||
done(ExecResult::Cancel);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -464,7 +464,7 @@ void ColorButton::doubleclick_event(GUI::MouseEvent&)
|
|||
{
|
||||
click();
|
||||
m_selected = true;
|
||||
m_picker.done(Dialog::ExecOK);
|
||||
m_picker.done(Dialog::ExecResult::OK);
|
||||
}
|
||||
|
||||
void ColorButton::paint_event(PaintEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue