diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 14:44:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 14:44:13 +0100 |
commit | 799b0a4fa8cc6eaa61845e62312d299ba9cd05c4 (patch) | |
tree | bc6752215c131027028751a1aff9ede15996fa53 /Applications/Piano | |
parent | dccf335d5b1aa06e44f9262c95b176c42ba2cf1e (diff) | |
download | serenity-799b0a4fa8cc6eaa61845e62312d299ba9cd05c4.zip |
LibGUI: Rename {H,V}BoxLayout => {Horizontal,Vertical}BoxLayout
Diffstat (limited to 'Applications/Piano')
-rw-r--r-- | Applications/Piano/KnobsWidget.cpp | 8 | ||||
-rw-r--r-- | Applications/Piano/MainWidget.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Applications/Piano/KnobsWidget.cpp b/Applications/Piano/KnobsWidget.cpp index 8f53f0b8b0..c6dd0dda90 100644 --- a/Applications/Piano/KnobsWidget.cpp +++ b/Applications/Piano/KnobsWidget.cpp @@ -40,11 +40,11 @@ KnobsWidget::KnobsWidget(GUI::Widget* parent, AudioEngine& audio_engine, MainWid set_frame_thickness(2); set_frame_shadow(Gfx::FrameShadow::Sunken); set_frame_shape(Gfx::FrameShape::Container); - set_layout(make<GUI::VBoxLayout>()); + set_layout(make<GUI::VerticalBoxLayout>()); set_fill_with_background_color(true); m_labels_container = GUI::Widget::construct(this); - m_labels_container->set_layout(make<GUI::HBoxLayout>()); + m_labels_container->set_layout(make<GUI::HorizontalBoxLayout>()); m_labels_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed); m_labels_container->set_preferred_size(0, 20); @@ -57,7 +57,7 @@ KnobsWidget::KnobsWidget(GUI::Widget* parent, AudioEngine& audio_engine, MainWid m_delay_label = GUI::Label::construct("Delay", m_labels_container); m_values_container = GUI::Widget::construct(this); - m_values_container->set_layout(make<GUI::HBoxLayout>()); + m_values_container->set_layout(make<GUI::HorizontalBoxLayout>()); m_values_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed); m_values_container->set_preferred_size(0, 10); @@ -70,7 +70,7 @@ KnobsWidget::KnobsWidget(GUI::Widget* parent, AudioEngine& audio_engine, MainWid m_delay_value = GUI::Label::construct(String::number(m_audio_engine.delay() / m_audio_engine.tick()), m_values_container); m_knobs_container = GUI::Widget::construct(this); - m_knobs_container->set_layout(make<GUI::HBoxLayout>()); + m_knobs_container->set_layout(make<GUI::HorizontalBoxLayout>()); // FIXME: Implement vertical flipping in GSlider, not here. diff --git a/Applications/Piano/MainWidget.cpp b/Applications/Piano/MainWidget.cpp index 2e25ef543b..d64850fca7 100644 --- a/Applications/Piano/MainWidget.cpp +++ b/Applications/Piano/MainWidget.cpp @@ -36,7 +36,7 @@ MainWidget::MainWidget(AudioEngine& audio_engine) : m_audio_engine(audio_engine) { - set_layout(make<GUI::VBoxLayout>()); + set_layout(make<GUI::VerticalBoxLayout>()); layout()->set_spacing(2); layout()->set_margins({ 2, 2, 2, 2 }); set_fill_with_background_color(true); @@ -50,7 +50,7 @@ MainWidget::MainWidget(AudioEngine& audio_engine) m_roll_widget->set_preferred_size(0, 300); m_keys_and_knobs_container = GUI::Widget::construct(this); - m_keys_and_knobs_container->set_layout(make<GUI::HBoxLayout>()); + m_keys_and_knobs_container->set_layout(make<GUI::HorizontalBoxLayout>()); m_keys_and_knobs_container->layout()->set_spacing(2); m_keys_and_knobs_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed); m_keys_and_knobs_container->set_preferred_size(0, 100); |