mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
LibGUI: Remove parent parameter to GUI::Widget constructor
This commit is contained in:
parent
4ce28c32d1
commit
c5d913970a
114 changed files with 207 additions and 313 deletions
|
@ -35,8 +35,7 @@
|
|||
#include <LibHTML/DOMTreeModel.h>
|
||||
#include <LibHTML/StylePropertiesModel.h>
|
||||
|
||||
InspectorWidget::InspectorWidget(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
InspectorWidget::InspectorWidget()
|
||||
{
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
auto splitter = add<GUI::VerticalSplitter>();
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
void set_document(Document*);
|
||||
|
||||
private:
|
||||
explicit InspectorWidget(GUI::Widget* parent);
|
||||
InspectorWidget();
|
||||
|
||||
RefPtr<GUI::TreeView> m_dom_tree_view;
|
||||
RefPtr<GUI::TableView> m_style_table_view;
|
||||
|
|
|
@ -200,7 +200,7 @@ int main(int argc, char** argv)
|
|||
dom_inspector_window = GUI::Window::construct();
|
||||
dom_inspector_window->set_rect(100, 100, 300, 500);
|
||||
dom_inspector_window->set_title("DOM inspector");
|
||||
auto dom_inspector_widget = InspectorWidget::construct(nullptr);
|
||||
auto dom_inspector_widget = InspectorWidget::construct();
|
||||
dom_inspector_window->set_main_widget(dom_inspector_widget);
|
||||
}
|
||||
auto* inspector_widget = static_cast<InspectorWidget*>(dom_inspector_window->main_widget());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue