VisualBuilder: Expose the "name" property on all widgets.

This commit is contained in:
Andreas Kling 2019-07-10 20:34:17 +02:00
parent b06d2c04dc
commit 69fea8d41d

View file

@ -107,6 +107,8 @@ void VBWidget::add_property(const String& name, Function<GVariant(const GWidget&
void VBWidget::setup_properties()
{
VB_ADD_PROPERTY(CObject, "name", name, set_name, string);
VB_ADD_PROPERTY(GWidget, "width", width, set_width, int);
VB_ADD_PROPERTY(GWidget, "height", height, set_height, int);
VB_ADD_PROPERTY(GWidget, "x", x, set_x, int);