1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 14:35:07 +00:00

VisualBuilder: Tweak grid size and add an (empty) toolbox window.

This commit is contained in:
Andreas Kling 2019-04-11 04:01:17 +02:00
parent c6ffb3e2b8
commit c71ece77fa
5 changed files with 30 additions and 7 deletions

View file

@ -17,8 +17,11 @@ static GWidget* build_gwidget(WidgetType type, GWidget* parent)
return new GButton(parent);
case WidgetType::GSpinBox:
return new GSpinBox(parent);
case WidgetType::GTextEditor:
return new GTextEditor(GTextEditor::Type::MultiLine, parent);
case WidgetType::GTextEditor: {
auto* editor = new GTextEditor(GTextEditor::Type::MultiLine, parent);
editor->set_ruler_visible(false);
return editor;
}
default:
ASSERT_NOT_REACHED();
return nullptr;