Browser: Move InspectorWidget into the Browser namespace

This commit is contained in:
Andreas Kling 2020-05-08 21:38:30 +02:00
parent c24304dca3
commit 788293ead8
Notes: sideshowbarker 2024-07-19 06:50:13 +09:00
2 changed files with 9 additions and 1 deletions

View file

@ -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));
}
}

View file

@ -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;
};
}