summaryrefslogtreecommitdiff
path: root/Applications/TextEditor
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 09:48:11 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:09:48 +0100
commitd67da8c1015c923d799409fee9bf6dd2eafc82b8 (patch)
tree554e5304a94b3b5aab8d60cca5846a1643d00175 /Applications/TextEditor
parent63364f8a5d70fbbf851c10cff4da62b1ae51177d (diff)
downloadserenity-d67da8c1015c923d799409fee9bf6dd2eafc82b8.zip
LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index fd53e7c3cc..c1538f60de 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/Applications/TextEditor/TextEditorWidget.cpp
@@ -45,7 +45,7 @@
TextEditorWidget::TextEditorWidget()
{
- set_layout(make<GBoxLayout>(Orientation::Vertical));
+ set_layout(make<GVBoxLayout>());
layout()->set_spacing(0);
auto toolbar = GToolBar::construct(this);
@@ -71,7 +71,7 @@ TextEditorWidget::TextEditorWidget()
m_find_replace_widget->set_fill_with_background_color(true);
m_find_replace_widget->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
m_find_replace_widget->set_preferred_size(0, 48);
- m_find_replace_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
+ m_find_replace_widget->set_layout(make<GVBoxLayout>());
m_find_replace_widget->layout()->set_margins({ 2, 2, 2, 4 });
m_find_replace_widget->set_visible(false);
@@ -79,14 +79,14 @@ TextEditorWidget::TextEditorWidget()
m_find_widget->set_fill_with_background_color(true);
m_find_widget->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
m_find_widget->set_preferred_size(0, 22);
- m_find_widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
+ m_find_widget->set_layout(make<GHBoxLayout>());
m_find_widget->set_visible(false);
m_replace_widget = GWidget::construct(m_find_replace_widget);
m_replace_widget->set_fill_with_background_color(true);
m_replace_widget->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
m_replace_widget->set_preferred_size(0, 22);
- m_replace_widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
+ m_replace_widget->set_layout(make<GHBoxLayout>());
m_replace_widget->set_visible(false);
m_find_textbox = GTextBox::construct(m_find_widget);