diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 14:40:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 14:40:59 +0100 |
commit | 6a71ba1deb6cc34cfe22094207c70ec9996d1501 (patch) | |
tree | dc9b1f778e13a3eecf94d9414b7aa44fa7ee9d0c /DevTools | |
parent | 8bb75084fd2956ae431789742c4fe6d0ed0679bd (diff) | |
download | serenity-6a71ba1deb6cc34cfe22094207c70ec9996d1501.zip |
LibGUI: Add HorizontalSplitter and VerticalSplitter convenience classes
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/HackStudio/main.cpp | 8 | ||||
-rw-r--r-- | DevTools/Inspector/main.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index 71da528cf0..6afb9ae6fb 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -247,7 +247,7 @@ int main(int argc, char** argv) project_tree_view_context_menu->add_action(add_existing_file_action); project_tree_view_context_menu->add_action(delete_action); - auto outer_splitter = GUI::Splitter::construct(Orientation::Horizontal, widget); + auto outer_splitter = GUI::HorizontalSplitter::construct(widget); g_project_tree_view = GUI::TreeView::construct(outer_splitter); g_project_tree_view->set_model(g_project->model()); g_project_tree_view->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill); @@ -296,11 +296,11 @@ int main(int argc, char** argv) form_widgets_toolbar->add_action(move(action)); }); - auto form_editor_inner_splitter = GUI::Splitter::construct(Orientation::Horizontal, g_form_inner_container); + auto form_editor_inner_splitter = GUI::HorizontalSplitter::construct(g_form_inner_container); g_form_editor_widget = FormEditorWidget::construct(form_editor_inner_splitter); - auto form_editing_pane_container = GUI::Splitter::construct(Orientation::Vertical, form_editor_inner_splitter); + auto form_editing_pane_container = GUI::VerticalSplitter::construct(form_editor_inner_splitter); form_editing_pane_container->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill); form_editing_pane_container->set_preferred_size(190, 0); form_editing_pane_container->set_layout(make<GUI::VBoxLayout>()); @@ -345,7 +345,7 @@ int main(int argc, char** argv) add_properties_pane("Form widget tree:", form_widget_tree_view); add_properties_pane("Widget properties:", GUI::TableView::construct(nullptr)); - g_text_inner_splitter = GUI::Splitter::construct(Orientation::Vertical, g_right_hand_stack); + g_text_inner_splitter = GUI::VerticalSplitter::construct(g_right_hand_stack); g_text_inner_splitter->layout()->set_margins({ 0, 3, 0, 0 }); add_new_editor(*g_text_inner_splitter); diff --git a/DevTools/Inspector/main.cpp b/DevTools/Inspector/main.cpp index 4a4e75b3e1..95af8234fd 100644 --- a/DevTools/Inspector/main.cpp +++ b/DevTools/Inspector/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char** argv) widget->set_fill_with_background_color(true); widget->set_layout(make<GUI::VBoxLayout>()); - auto splitter = GUI::Splitter::construct(Orientation::Horizontal, widget); + auto splitter = GUI::HorizontalSplitter::construct(widget); RemoteProcess remote_process(pid); |