1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibGUI: Convert GWidget to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 17:05:35 +02:00
parent e4e92980a1
commit ff6ce422dd
41 changed files with 115 additions and 107 deletions

View file

@ -18,7 +18,8 @@ public:
int active_tab_index() const;
GWidget* active_widget() const { return m_active_widget; }
GWidget* active_widget() { return m_active_widget.ptr(); }
const GWidget* active_widget() const { return m_active_widget.ptr(); }
void set_active_widget(GWidget*);
int bar_height() const { return 21; }
@ -41,7 +42,7 @@ private:
Rect container_rect() const;
void update_bar();
GWidget* m_active_widget { nullptr };
ObjectPtr<GWidget> m_active_widget;
struct TabData {
Rect rect(const Font&) const;