mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
Ladybird/Qt: Port the Inspector to the WebView property tables
This commit is contained in:
parent
0037fdaf11
commit
b5d5e48ffc
3 changed files with 1 additions and 189 deletions
|
@ -6,14 +6,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ModelAdapter.h"
|
||||
#include "WebContentView.h"
|
||||
#include <AK/StringView.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
#include <QWidget>
|
||||
|
||||
class QTableView;
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class WebContentView;
|
||||
|
@ -32,21 +28,10 @@ public:
|
|||
void select_default_node();
|
||||
|
||||
private:
|
||||
void load_style_json(StringView computed_style_json, StringView resolved_style_json, StringView custom_properties_json);
|
||||
void clear_style_json();
|
||||
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
|
||||
OwnPtr<WebContentView> m_inspector_view;
|
||||
OwnPtr<WebView::InspectorClient> m_inspector_client;
|
||||
|
||||
OwnPtr<PropertyTableModel> m_computed_style_model;
|
||||
OwnPtr<PropertyTableModel> m_resolved_style_model;
|
||||
OwnPtr<PropertyTableModel> m_custom_properties_model;
|
||||
|
||||
QTableView* m_computed_style_table { nullptr };
|
||||
QTableView* m_resolved_style_table { nullptr };
|
||||
QTableView* m_custom_properties_table { nullptr };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue