1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:27:34 +00:00

FontEditor: Minor UI improvements.

- Implement focus for custom widgets.
- Add two live demo labels with an English pangram in upper/lower case.
This commit is contained in:
Andreas Kling 2019-02-04 15:37:23 +01:00
parent d7307c3119
commit d4aaba6bed
3 changed files with 47 additions and 19 deletions

View file

@ -42,6 +42,7 @@ public:
private:
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual bool accepts_focus() const override { return true; }
Rect get_outer_rect(byte glyph) const;
@ -72,6 +73,7 @@ private:
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;
virtual bool accepts_focus() const override { return true; }
void draw_at_mouse(const GMouseEvent&);