diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-08 21:38:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-08 21:38:30 +0200 |
commit | 788293ead831512863e2c6000d2640536fe47e47 (patch) | |
tree | ec4ade93942b05879aa3c699258ab4c06271efa4 | |
parent | c24304dca3fa1baf3c1d6b3c8d88601c80786905 (diff) | |
download | serenity-788293ead831512863e2c6000d2640536fe47e47.zip |
Browser: Move InspectorWidget into the Browser namespace
-rw-r--r-- | Applications/Browser/InspectorWidget.cpp | 6 | ||||
-rw-r--r-- | Applications/Browser/InspectorWidget.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Applications/Browser/InspectorWidget.cpp b/Applications/Browser/InspectorWidget.cpp index fa09653761..8b86f2db08 100644 --- a/Applications/Browser/InspectorWidget.cpp +++ b/Applications/Browser/InspectorWidget.cpp @@ -27,14 +27,16 @@ #include "InspectorWidget.h" #include <LibGUI/BoxLayout.h> #include <LibGUI/Splitter.h> +#include <LibGUI/TabWidget.h> #include <LibGUI/TableView.h> #include <LibGUI/TreeView.h> -#include <LibGUI/TabWidget.h> #include <LibWeb/DOM/Document.h> #include <LibWeb/DOM/Element.h> #include <LibWeb/DOMTreeModel.h> #include <LibWeb/StylePropertiesModel.h> +namespace Browser { + InspectorWidget::InspectorWidget() { set_layout<GUI::VerticalBoxLayout>(); @@ -75,3 +77,5 @@ void InspectorWidget::set_document(Web::Document* document) m_document = document; m_dom_tree_view->set_model(Web::DOMTreeModel::create(*document)); } + +} diff --git a/Applications/Browser/InspectorWidget.h b/Applications/Browser/InspectorWidget.h index f070b77cf7..8c974bc6f6 100644 --- a/Applications/Browser/InspectorWidget.h +++ b/Applications/Browser/InspectorWidget.h @@ -27,6 +27,8 @@ #include <LibGUI/Widget.h> #include <LibWeb/Forward.h> +namespace Browser { + class InspectorWidget final : public GUI::Widget { C_OBJECT(InspectorWidget) public: @@ -42,3 +44,5 @@ private: RefPtr<GUI::TableView> m_computed_style_table_view; RefPtr<Web::Document> m_document; }; + +} |