mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr
This commit is contained in:
parent
4ea229accd
commit
93851c3832
25 changed files with 38 additions and 36 deletions
|
@ -93,7 +93,6 @@ public:
|
|||
MultiLine,
|
||||
SingleLine
|
||||
};
|
||||
GTextEditor(Type, GWidget* parent);
|
||||
virtual ~GTextEditor() override;
|
||||
|
||||
bool is_readonly() const { return m_readonly; }
|
||||
|
@ -166,9 +165,9 @@ public:
|
|||
void add_custom_context_menu_action(GAction&);
|
||||
|
||||
protected:
|
||||
virtual void did_change_font() override;
|
||||
GTextEditor(Type, GWidget* parent);
|
||||
|
||||
private:
|
||||
virtual void did_change_font() override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void mouseup_event(GMouseEvent&) override;
|
||||
|
@ -184,6 +183,8 @@ private:
|
|||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
|
||||
private:
|
||||
|
||||
void create_actions();
|
||||
void paint_ruler(Painter&);
|
||||
void update_content_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue