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/PDFViewer | |
parent | 9561ec15f47fdba66a4e8872fd03aae8d0f2df22 (diff) | |
download | serenity-77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f.zip |
Userland: Specify margins and spacing in the GUI::Layout constructor
Diffstat (limited to 'Userland/Applications/PDFViewer')
-rw-r--r-- | Userland/Applications/PDFViewer/SidebarWidget.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Applications/PDFViewer/SidebarWidget.cpp b/Userland/Applications/PDFViewer/SidebarWidget.cpp index 35ca3df457..cb3cc14201 100644 --- a/Userland/Applications/PDFViewer/SidebarWidget.cpp +++ b/Userland/Applications/PDFViewer/SidebarWidget.cpp @@ -18,8 +18,7 @@ SidebarWidget::SidebarWidget() auto& tab_bar = add<GUI::TabWidget>(); auto& outline_container = tab_bar.add_tab<GUI::Widget>("Outline"); - outline_container.set_layout<GUI::VerticalBoxLayout>(); - outline_container.layout()->set_margins(4); + outline_container.set_layout<GUI::VerticalBoxLayout>(4); m_outline_tree_view = outline_container.add<GUI::TreeView>(); m_outline_tree_view->set_activates_on_selection(true); @@ -34,8 +33,7 @@ SidebarWidget::SidebarWidget() }; auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails"); - thumbnails_container.set_layout<GUI::VerticalBoxLayout>(); - thumbnails_container.layout()->set_margins(4); + thumbnails_container.set_layout<GUI::VerticalBoxLayout>(4); // FIXME: Add thumbnail previews } |