mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +00:00
LibGUI: Add HorizontalSplitter and VerticalSplitter convenience classes
This commit is contained in:
parent
8bb75084fd
commit
6a71ba1deb
10 changed files with 37 additions and 13 deletions
|
@ -39,7 +39,7 @@ InspectorWidget::InspectorWidget(GUI::Widget* parent)
|
|||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
auto splitter = GUI::Splitter::construct(Orientation::Vertical, this);
|
||||
auto splitter = GUI::VerticalSplitter::construct(this);
|
||||
m_dom_tree_view = GUI::TreeView::construct(splitter);
|
||||
m_dom_tree_view->on_selection = [this](auto& index) {
|
||||
auto* node = static_cast<Node*>(index.internal_data());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue