summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-21 16:01:00 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-21 16:19:18 +0200
commit52a250cb614805134ef7e253a1866d69bcb99b9f (patch)
treeb04b88e62af46c7f67182db79382c4637a7f99be /DevTools
parenta19690170f879ee16df5dd910064b00b92f793ca (diff)
downloadserenity-52a250cb614805134ef7e253a1866d69bcb99b9f.zip
LibGUI: Make MenuBar a Core::Object
This makes it show up in Inspector with all the menus inside it. :^)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/HackStudio/main.cpp2
-rw-r--r--DevTools/ProfileViewer/main.cpp2
-rw-r--r--DevTools/VisualBuilder/main.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index d69f6b9da7..0edabf04cf 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -491,7 +491,7 @@ int main(int argc, char** argv)
locator.open();
});
- auto menubar = make<GUI::MenuBar>();
+ auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("HackStudio");
app_menu.add_action(open_action);
app_menu.add_action(save_action);
diff --git a/DevTools/ProfileViewer/main.cpp b/DevTools/ProfileViewer/main.cpp
index 2d966085db..325f3dfad9 100644
--- a/DevTools/ProfileViewer/main.cpp
+++ b/DevTools/ProfileViewer/main.cpp
@@ -80,7 +80,7 @@ int main(int argc, char** argv)
disassembly_view.set_model(profile->disassembly_model());
};
- auto menubar = make<GUI::MenuBar>();
+ auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("ProfileViewer");
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app.quit(); }));
diff --git a/DevTools/VisualBuilder/main.cpp b/DevTools/VisualBuilder/main.cpp
index c697602e80..c008dda49b 100644
--- a/DevTools/VisualBuilder/main.cpp
+++ b/DevTools/VisualBuilder/main.cpp
@@ -56,7 +56,7 @@ int main(int argc, char** argv)
propbox->table_view().set_model(widget ? &widget->property_model() : nullptr);
};
- auto menubar = make<GUI::MenuBar>();
+ auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("Visual Builder");
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the().quit(0);