mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
Revert "StatusBar: Allow GML files to set the number of labels to create"
This reverts commit e11ec20650
.
Broke FileManager, Browser, etc.
This commit is contained in:
parent
31e04907b4
commit
775ae27a55
2 changed files with 7 additions and 29 deletions
|
@ -39,10 +39,9 @@ public:
|
|||
String text(int index) const;
|
||||
void set_text(const StringView&);
|
||||
void set_text(int index, const StringView&);
|
||||
NonnullRefPtr<Label> label(int index) const;
|
||||
|
||||
protected:
|
||||
explicit StatusBar(int label_count = 0);
|
||||
explicit StatusBar(int label_count = 1);
|
||||
virtual void paint_event(PaintEvent&) override;
|
||||
virtual void resize_event(ResizeEvent&) override;
|
||||
|
||||
|
@ -50,12 +49,6 @@ private:
|
|||
NonnullRefPtr<Label> create_label();
|
||||
NonnullRefPtrVector<Label> m_labels;
|
||||
RefPtr<ResizeCorner> m_corner;
|
||||
|
||||
// Used to initialize the number of labels that should
|
||||
// be created from a GML file as opposed to the constructor.
|
||||
int label_count() const { return m_label_count; }
|
||||
void set_label_count(int);
|
||||
int m_label_count {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue