1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

GTextEditor: Allow moving the cursor by clicking.

This commit is contained in:
Andreas Kling 2019-03-07 14:02:10 +01:00
parent 9997992907
commit a21ecd440a
2 changed files with 9 additions and 5 deletions

View file

@ -45,6 +45,7 @@ public:
int line_height() const { return font().glyph_height() + m_line_spacing; }
int padding() const { return 3; }
GTextPosition cursor() const { return m_cursor; }
int glyph_width() const { return font().glyph_width('x'); }
private:
virtual void paint_event(GPaintEvent&) override;