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:
parent
b03e1b08b5
commit
21bacec13f
2 changed files with 10 additions and 66 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue