mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
Notes:
sideshowbarker
2024-07-19 12:00:58 +09:00
Author: https://github.com/awesomekling
Commit: defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -7,12 +7,12 @@ class ABuffer;
|
|||
class SampleWidget final : public GFrame {
|
||||
C_OBJECT(SampleWidget)
|
||||
public:
|
||||
explicit SampleWidget(GWidget* parent);
|
||||
virtual ~SampleWidget() override;
|
||||
|
||||
void set_buffer(ABuffer*);
|
||||
|
||||
private:
|
||||
explicit SampleWidget(GWidget* parent);
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
RefPtr<ABuffer> m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue