mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:14:58 +00:00
LibGUI: Make Statusbar::set_segment_count()
public
This allows the GML compiler to handle the `segment_count` property and allows the status bar segment count to be changed after construction.
This commit is contained in:
parent
8a727abd23
commit
3930702bd2
1 changed files with 1 additions and 1 deletions
|
@ -63,6 +63,7 @@ public:
|
|||
};
|
||||
|
||||
Segment& segment(size_t index) { return m_segments.at(index); }
|
||||
void set_segment_count(size_t);
|
||||
|
||||
protected:
|
||||
explicit Statusbar(int segment_count = 1);
|
||||
|
@ -70,7 +71,6 @@ protected:
|
|||
virtual void resize_event(ResizeEvent&) override;
|
||||
|
||||
private:
|
||||
void set_segment_count(size_t);
|
||||
size_t segment_count() const { return m_segments.size(); }
|
||||
void update_segment(size_t);
|
||||
NonnullRefPtr<Segment> create_segment();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue