diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-16 21:07:06 +0000 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-18 16:56:56 +0000 |
commit | 77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f (patch) | |
tree | 956e10f4c4713e20c03f4aed06f08133f5fcc2e7 /Userland/Applications/ImageViewer | |
parent | 9561ec15f47fdba66a4e8872fd03aae8d0f2df22 (diff) | |
download | serenity-77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f.zip |
Userland: Specify margins and spacing in the GUI::Layout constructor
Diffstat (limited to 'Userland/Applications/ImageViewer')
-rw-r--r-- | Userland/Applications/ImageViewer/MainWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/ImageViewer/MainWidget.cpp b/Userland/Applications/ImageViewer/MainWidget.cpp index 70b04f33c0..a585288c49 100644 --- a/Userland/Applications/ImageViewer/MainWidget.cpp +++ b/Userland/Applications/ImageViewer/MainWidget.cpp @@ -11,8 +11,7 @@ namespace ImageViewer { MainWidget::MainWidget() { set_fill_with_background_color(true); - set_layout<GUI::VerticalBoxLayout>(); - layout()->set_spacing(2); + set_layout<GUI::VerticalBoxLayout>(GUI::Margins {}, 2); } void MainWidget::keydown_event(GUI::KeyEvent& event) |