summaryrefslogtreecommitdiff
path: root/DevTools/Inspector/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /DevTools/Inspector/main.cpp
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'DevTools/Inspector/main.cpp')
-rw-r--r--DevTools/Inspector/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/DevTools/Inspector/main.cpp b/DevTools/Inspector/main.cpp
index 99548c5724..4a4e75b3e1 100644
--- a/DevTools/Inspector/main.cpp
+++ b/DevTools/Inspector/main.cpp
@@ -52,18 +52,18 @@ int main(int argc, char** argv)
if (!ok)
print_usage_and_exit();
- GApplication app(argc, argv);
+ GUI::Application app(argc, argv);
- auto window = GWindow::construct();
+ auto window = GUI::Window::construct();
window->set_title("Inspector");
window->set_rect(150, 150, 300, 500);
- auto widget = GWidget::construct();
+ auto widget = GUI::Widget::construct();
window->set_main_widget(widget);
widget->set_fill_with_background_color(true);
- widget->set_layout(make<GVBoxLayout>());
+ widget->set_layout(make<GUI::VBoxLayout>());
- auto splitter = GSplitter::construct(Orientation::Horizontal, widget);
+ auto splitter = GUI::Splitter::construct(Orientation::Horizontal, widget);
RemoteProcess remote_process(pid);
@@ -72,11 +72,11 @@ int main(int argc, char** argv)
window->set_title(String::format("Inspector: %s (%d)", remote_process.process_name().characters(), remote_process.pid()));
};
- auto tree_view = GTreeView::construct(splitter);
+ auto tree_view = GUI::TreeView::construct(splitter);
tree_view->set_model(remote_process.object_graph_model());
tree_view->set_activates_on_selection(true);
- auto properties_table_view = GTableView::construct(splitter);
+ auto properties_table_view = GUI::TableView::construct(splitter);
properties_table_view->set_size_columns_to_fit_content(true);
tree_view->on_activation = [&](auto& index) {