mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
Browser: Move InspectorWidget into the Browser namespace
This commit is contained in:
parent
c24304dca3
commit
788293ead8
2 changed files with 9 additions and 1 deletions
|
@ -27,14 +27,16 @@
|
||||||
#include "InspectorWidget.h"
|
#include "InspectorWidget.h"
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
#include <LibGUI/Splitter.h>
|
#include <LibGUI/Splitter.h>
|
||||||
|
#include <LibGUI/TabWidget.h>
|
||||||
#include <LibGUI/TableView.h>
|
#include <LibGUI/TableView.h>
|
||||||
#include <LibGUI/TreeView.h>
|
#include <LibGUI/TreeView.h>
|
||||||
#include <LibGUI/TabWidget.h>
|
|
||||||
#include <LibWeb/DOM/Document.h>
|
#include <LibWeb/DOM/Document.h>
|
||||||
#include <LibWeb/DOM/Element.h>
|
#include <LibWeb/DOM/Element.h>
|
||||||
#include <LibWeb/DOMTreeModel.h>
|
#include <LibWeb/DOMTreeModel.h>
|
||||||
#include <LibWeb/StylePropertiesModel.h>
|
#include <LibWeb/StylePropertiesModel.h>
|
||||||
|
|
||||||
|
namespace Browser {
|
||||||
|
|
||||||
InspectorWidget::InspectorWidget()
|
InspectorWidget::InspectorWidget()
|
||||||
{
|
{
|
||||||
set_layout<GUI::VerticalBoxLayout>();
|
set_layout<GUI::VerticalBoxLayout>();
|
||||||
|
@ -75,3 +77,5 @@ void InspectorWidget::set_document(Web::Document* document)
|
||||||
m_document = document;
|
m_document = document;
|
||||||
m_dom_tree_view->set_model(Web::DOMTreeModel::create(*document));
|
m_dom_tree_view->set_model(Web::DOMTreeModel::create(*document));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
#include <LibGUI/Widget.h>
|
#include <LibGUI/Widget.h>
|
||||||
#include <LibWeb/Forward.h>
|
#include <LibWeb/Forward.h>
|
||||||
|
|
||||||
|
namespace Browser {
|
||||||
|
|
||||||
class InspectorWidget final : public GUI::Widget {
|
class InspectorWidget final : public GUI::Widget {
|
||||||
C_OBJECT(InspectorWidget)
|
C_OBJECT(InspectorWidget)
|
||||||
public:
|
public:
|
||||||
|
@ -42,3 +44,5 @@ private:
|
||||||
RefPtr<GUI::TableView> m_computed_style_table_view;
|
RefPtr<GUI::TableView> m_computed_style_table_view;
|
||||||
RefPtr<Web::Document> m_document;
|
RefPtr<Web::Document> m_document;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue