diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-04 09:46:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-04 14:26:16 +0100 |
commit | 0f3e57a6fb037f6a8133e8ec2be8f0889ff9bc19 (patch) | |
tree | 3fc1f6f91d7e00783792e98bd23f226e591d99a3 /Libraries/LibGUI/Application.cpp | |
parent | 4697195645a4c66930761c85685f5752dc777bba (diff) | |
download | serenity-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.cpp | 3 |
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; |