1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibGUI+Userland: Store column names in JsonArrayModel as String

This commit is contained in:
Karol Kosek 2023-05-14 19:38:08 +02:00 committed by Andreas Kling
parent 945f05ed76
commit b7558a5ce4
Notes: sideshowbarker 2024-07-17 03:51:15 +09:00
9 changed files with 68 additions and 68 deletions

View file

@ -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();
}