mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGUI: Add a way for GWidget subclasses to learn that the font changed
Use this in GTextEditor to update the vertical scrolling step size so we always scroll one-line-at-a-time.
This commit is contained in:
parent
e7d15ccca4
commit
3e2e086011
4 changed files with 22 additions and 6 deletions
|
@ -165,6 +165,9 @@ public:
|
|||
|
||||
void add_custom_context_menu_action(GAction&);
|
||||
|
||||
protected:
|
||||
virtual void did_change_font() override;
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue