mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17: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:
parent
2da058c7f2
commit
f92e0f7d80
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue