1
Fork 0
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:
Andreas Kling 2020-02-06 14:40:59 +01:00
parent 8bb75084fd
commit 6a71ba1deb
10 changed files with 37 additions and 13 deletions

View file

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