diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-10 11:10:04 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-10 12:57:37 +0100 |
commit | f92e0f7d80c04e04fb93cd3a507ad97fa400fd4b (patch) | |
tree | 60e921309093f501c238e616ea13032c6cca0851 /DevTools/HackStudio/FormEditorWidget.h | |
parent | 2da058c7f28bbcb5c9135978e6178704e5c4162b (diff) | |
download | serenity-f92e0f7d80c04e04fb93cd3a507ad97fa400fd4b.zip |
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.
Diffstat (limited to 'DevTools/HackStudio/FormEditorWidget.h')
-rw-r--r-- | DevTools/HackStudio/FormEditorWidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DevTools/HackStudio/FormEditorWidget.h b/DevTools/HackStudio/FormEditorWidget.h index ef53044f8f..7f04cf4248 100644 --- a/DevTools/HackStudio/FormEditorWidget.h +++ b/DevTools/HackStudio/FormEditorWidget.h @@ -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; |