1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00: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
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;