mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 20:12:13 +00:00
LibGUI: Allow overriding the button size when constructing GToolBar
This makes it easy to create a toolbar housing buttons of a size other than 16x16.
This commit is contained in:
parent
0d2495e4e7
commit
d22d9874f7
2 changed files with 8 additions and 6 deletions
|
@ -18,7 +18,7 @@ public:
|
|||
|
||||
protected:
|
||||
explicit GToolBar(GWidget* parent);
|
||||
explicit GToolBar(Orientation, GWidget* parent);
|
||||
explicit GToolBar(Orientation, int button_size, GWidget* parent);
|
||||
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
|
@ -33,5 +33,6 @@ private:
|
|||
RefPtr<GAction> action;
|
||||
};
|
||||
NonnullOwnPtrVector<Item> m_items;
|
||||
int m_button_size { 16 };
|
||||
bool m_has_frame { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue