diff options
author | Tom <tomut@yahoo.com> | 2021-04-04 15:40:34 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-06 08:50:39 +0200 |
commit | 3aaffa2c47e39583848cfe9b7b9f846e5119fe1b (patch) | |
tree | eb5a5535bec0952a95b19b9c494d9c6049896107 /Userland/Libraries/LibGUI/BoxLayout.cpp | |
parent | 6e101adc28c9c682f023386831d632a477768cb8 (diff) | |
download | serenity-3aaffa2c47e39583848cfe9b7b9f846e5119fe1b.zip |
LibGUI: Move widget registration to LibCore
This also moves Widget::load_from_json into Core::Object as a virtual
function in order to allow loading non-widget objects in GML (e.g.
BoxLayout).
Co-authored-by: Gunnar Beutner <gbeutner@serenityos.org>
Diffstat (limited to 'Userland/Libraries/LibGUI/BoxLayout.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/BoxLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/BoxLayout.cpp b/Userland/Libraries/LibGUI/BoxLayout.cpp index 113e4016a6..8ec88fe4d3 100644 --- a/Userland/Libraries/LibGUI/BoxLayout.cpp +++ b/Userland/Libraries/LibGUI/BoxLayout.cpp @@ -10,8 +10,8 @@ #include <LibGfx/Orientation.h> #include <stdio.h> -REGISTER_WIDGET(GUI, HorizontalBoxLayout) -REGISTER_WIDGET(GUI, VerticalBoxLayout) +REGISTER_CORE_OBJECT(GUI, HorizontalBoxLayout) +REGISTER_CORE_OBJECT(GUI, VerticalBoxLayout) namespace GUI { |