1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

VisualBuilder: Make it possible to move widgets to front/back.

This commit is contained in:
Andreas Kling 2019-04-16 03:52:26 +02:00
parent 04500c1ae2
commit 52e846df87
3 changed files with 18 additions and 10 deletions

View file

@ -18,10 +18,12 @@ VBWidget::VBWidget(VBWidgetType type, VBForm& form)
, m_property_model(VBWidgetPropertyModel::create(*this))
{
m_gwidget = VBWidgetRegistry::build_gwidget(type, &form, m_properties);
m_form.m_gwidget_map.set(m_gwidget, this);
}
VBWidget::~VBWidget()
{
m_form.m_gwidget_map.remove(m_gwidget);
}
Rect VBWidget::rect() const