mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
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