1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibGUI: Simplify ToolBarContainer by using shrink-to-fit

This class was implementing shrink-to-fit manually. No need for that
anymore now that we can use Widget's shrink-to-fit mode.
This commit is contained in:
Andreas Kling 2021-01-04 18:21:05 +01:00
parent b03e1b08b5
commit 21bacec13f
2 changed files with 10 additions and 66 deletions

View file

@ -38,17 +38,9 @@ public:
private:
explicit ToolBarContainer(Gfx::Orientation = Gfx::Orientation::Horizontal);
virtual void custom_layout() override;
virtual void paint_event(GUI::PaintEvent&) override;
virtual void child_event(Core::ChildEvent&) override;
void did_add_toolbar(Widget&);
void did_remove_toolbar(Widget&);
void recompute_preferred_size();
Gfx::Orientation m_orientation { Gfx::Orientation::Horizontal };
NonnullRefPtrVector<Widget> m_toolbars;
};
}