summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-04-04 15:40:34 -0600
committerAndreas Kling <kling@serenityos.org>2021-05-06 08:50:39 +0200
commit3aaffa2c47e39583848cfe9b7b9f846e5119fe1b (patch)
treeeb5a5535bec0952a95b19b9c494d9c6049896107 /Userland/Applications
parent6e101adc28c9c682f023386831d632a477768cb8 (diff)
downloadserenity-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/Applications')
-rw-r--r--Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp
index 2bc94a01e0..00cdf6ee0a 100644
--- a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp
+++ b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp
@@ -11,10 +11,10 @@
#include <LibGfx/Font.h>
#include <WindowServer/WindowManager.h>
-namespace SpaceAnalyzer {
-
REGISTER_WIDGET(SpaceAnalyzer, TreeMapWidget)
+namespace SpaceAnalyzer {
+
TreeMapWidget::TreeMapWidget()
: m_viewpoint(0)
{