mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibGUI+Userland: Store column names in JsonArrayModel as String
This commit is contained in:
parent
945f05ed76
commit
b7558a5ce4
9 changed files with 68 additions and 68 deletions
|
@ -165,8 +165,8 @@ BookmarksBarWidget::BookmarksBarWidget(DeprecatedString const& bookmarks_file, b
|
|||
this));
|
||||
|
||||
Vector<GUI::JsonArrayModel::FieldSpec> fields;
|
||||
fields.empend("title", "Title", Gfx::TextAlignment::CenterLeft);
|
||||
fields.empend("url", "Url", Gfx::TextAlignment::CenterRight);
|
||||
fields.empend("title", "Title"_short_string, Gfx::TextAlignment::CenterLeft);
|
||||
fields.empend("url", "Url"_short_string, Gfx::TextAlignment::CenterRight);
|
||||
set_model(GUI::JsonArrayModel::create(bookmarks_file, move(fields)));
|
||||
model()->invalidate();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue