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

LibGUI: Convert remaining random little things to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 19:39:37 +02:00
parent 81a5c4fc56
commit 409494193e
11 changed files with 15 additions and 13 deletions

View file

@ -2,8 +2,8 @@
#include <LibGUI/GFrame.h>
class GlyphEditorWidget final : public GFrame {
C_OBJECT(GlyphEditorWidget)
public:
GlyphEditorWidget(Font&, GWidget* parent);
virtual ~GlyphEditorWidget() override;
u8 glyph() const { return m_glyph; }
@ -18,6 +18,7 @@ public:
Function<void(u8)> on_glyph_altered;
private:
GlyphEditorWidget(Font&, GWidget* parent);
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;