mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibGUI: Convert GToolBar to ObjectPtr
This commit is contained in:
parent
b78225941d
commit
f4531c976c
6 changed files with 10 additions and 8 deletions
|
@ -8,7 +8,6 @@ class GAction;
|
|||
class GToolBar : public GWidget {
|
||||
C_OBJECT(GToolBar)
|
||||
public:
|
||||
explicit GToolBar(GWidget* parent);
|
||||
virtual ~GToolBar() override;
|
||||
|
||||
void add_action(GAction&);
|
||||
|
@ -17,9 +16,12 @@ public:
|
|||
bool has_frame() const { return m_has_frame; }
|
||||
void set_has_frame(bool has_frame) { m_has_frame = has_frame; }
|
||||
|
||||
private:
|
||||
protected:
|
||||
explicit GToolBar(GWidget* parent);
|
||||
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
private:
|
||||
struct Item {
|
||||
enum Type {
|
||||
Invalid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue