1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

HackStudio: Add placeholder code to test widget factory construction

We now use the magical widget registry to factory-construct widgets and
place them into the form.

This will need all kinds of work, but it's nice that the mechanism is
working as intended.
This commit is contained in:
Andreas Kling 2019-11-10 11:10:04 +01:00
parent 2da058c7f2
commit f92e0f7d80
Notes: sideshowbarker 2024-07-19 11:17:15 +09:00
2 changed files with 7 additions and 2 deletions

View file

@ -9,6 +9,9 @@ class FormEditorWidget final : public GScrollableWidget {
public:
virtual ~FormEditorWidget() override;
FormWidget& form_widget() { return *m_form_widget; }
const FormWidget& form_widget() const { return *m_form_widget; }
private:
virtual void paint_event(GPaintEvent&) override;