diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 17:11:42 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 17:11:42 +0200 |
commit | 677794f30d6d365a714aea3edbeb4a7668a96afc (patch) | |
tree | 88aea00328cb0a7a3fc65a4e6f313c80a5e9e14a /DevTools | |
parent | 21c56477b046a7e22c8cd7c675b9459ee794df43 (diff) | |
download | serenity-677794f30d6d365a714aea3edbeb4a7668a96afc.zip |
LibGUI: Make GCheckBox inherit from GAbstractButton.
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/VisualBuilder/VBWidget.cpp | 2 | ||||
-rw-r--r-- | DevTools/VisualBuilder/VBWidgetRegistry.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/VisualBuilder/VBWidget.cpp b/DevTools/VisualBuilder/VBWidget.cpp index a90b7fb1ea..084cddbaf4 100644 --- a/DevTools/VisualBuilder/VBWidget.cpp +++ b/DevTools/VisualBuilder/VBWidget.cpp @@ -161,7 +161,7 @@ void VBWidget::setup_properties() } if (m_type == VBWidgetType::GCheckBox) { - VB_ADD_PROPERTY(GCheckBox, "caption", caption, set_caption, string); + VB_ADD_PROPERTY(GCheckBox, "caption", text, set_text, string); VB_ADD_PROPERTY(GCheckBox, "checked", is_checked, set_checked, bool); } } diff --git a/DevTools/VisualBuilder/VBWidgetRegistry.cpp b/DevTools/VisualBuilder/VBWidgetRegistry.cpp index b6e3cfa561..1f38e5de7c 100644 --- a/DevTools/VisualBuilder/VBWidgetRegistry.cpp +++ b/DevTools/VisualBuilder/VBWidgetRegistry.cpp @@ -73,7 +73,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent) } case VBWidgetType::GCheckBox: { auto* box = new GCheckBox(parent); - box->set_caption("checkbox_1"); + box->set_text("checkbox_1"); return box; } default: |