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:
parent
945f05ed76
commit
b7558a5ce4
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/krkk
Commit: b7558a5ce4
Pull-request: https://github.com/SerenityOS/serenity/pull/18836
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