summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Application.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-04 09:46:23 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-04 14:26:16 +0100
commit0f3e57a6fb037f6a8133e8ec2be8f0889ff9bc19 (patch)
tree3fc1f6f91d7e00783792e98bd23f226e591d99a3 /Libraries/LibGUI/Application.cpp
parent4697195645a4c66930761c85685f5752dc777bba (diff)
downloadserenity-0f3e57a6fb037f6a8133e8ec2be8f0889ff9bc19.zip
LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients
Diffstat (limited to 'Libraries/LibGUI/Application.cpp')
-rw-r--r--Libraries/LibGUI/Application.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp
index 3e75168eb8..420a938711 100644
--- a/Libraries/LibGUI/Application.cpp
+++ b/Libraries/LibGUI/Application.cpp
@@ -122,13 +122,12 @@ private:
TooltipWindow()
{
set_window_type(WindowType::Tooltip);
- m_label = Label::construct();
+ m_label = set_main_widget<Label>();
m_label->set_background_color(Color::from_rgb(0xdac7b5));
m_label->set_fill_with_background_color(true);
m_label->set_frame_thickness(1);
m_label->set_frame_shape(Gfx::FrameShape::Container);
m_label->set_frame_shadow(Gfx::FrameShadow::Plain);
- set_main_widget(m_label);
}
RefPtr<Label> m_label;